From 9dad826716ab9b13cf455a9f24c6cde75ba078b5 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Tue, 16 Jul 2024 22:05:43 +0100 Subject: [PATCH] List out git remotes on failure --- tools/redirects/update-shortlinks.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/redirects/update-shortlinks.bash b/tools/redirects/update-shortlinks.bash index 46067ab0..8c2ef830 100755 --- a/tools/redirects/update-shortlinks.bash +++ b/tools/redirects/update-shortlinks.bash @@ -9,6 +9,7 @@ gitRoot=$(git rev-parse --show-toplevel) || { echo "Please run inside the byjp.fyi git repo"; exit 1; } if [[ "$(git remote get-url origin)" != "https://github.com/by-jp/byjp.fyi.git" ]]; then echo "This repo doesn't have the byjp.fyi repo as the origin" + git remote -v exit 2 fi cd $gitRoot