From 81c1ed9e4d82ce32a88825d03787db233e886110 Mon Sep 17 00:00:00 2001 From: "andre.peters" Date: Tue, 30 Jan 2018 08:58:59 +0100 Subject: [PATCH] [Update] Fix update check --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 57062ba6..d00cb0dd 100755 --- a/update.sh +++ b/update.sh @@ -73,7 +73,7 @@ while (($#)); do --check|-c) echo "Checking remote code for updates..." git fetch origin ${BRANCH} - if [[ $(git branch ${BRANCH} --contains $(git rev-parse origin/${BRANCH}) > /dev/null 2> /dev/null; echo $?) != 0 ]]; then + if [[ -z $(git log HEAD --pretty=format:"%H" | grep $(git rev-parse origin/${BRANCH})) ]]; then echo "Updated code is available." exit 0 else