From bb4bc11383911b2306735df5a7352f79f6d9bf5d Mon Sep 17 00:00:00 2001 From: Jordan ERNST Date: Thu, 12 Oct 2023 15:55:53 +0200 Subject: [PATCH] Fix for git < v1.7.5 This change should be compatible with all git version. (get-url available from v1.7.5) --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 5204659e1..bd431b478 100755 --- a/update.sh +++ b/update.sh @@ -893,7 +893,7 @@ done # git remote set-url origin https://github.com/mailcow/mailcow-dockerized DEFAULT_REPO=https://github.com/mailcow/mailcow-dockerized -CURRENT_REPO=$(git remote get-url origin) +CURRENT_REPO=$(git config --get remote.origin.url) if [ "$CURRENT_REPO" != "$DEFAULT_REPO" ]; then echo "The Repository currently used is not the default Mailcow Repository." echo "Currently Repository: $CURRENT_REPO"