Ver Fonte

Fix update check

andryyy há 8 anos atrás
pai
commit
426b597d02
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      update.sh

+ 1 - 1
update.sh

@@ -25,7 +25,7 @@ case "${1}" in
 	--check|-c)
 		echo "Checking remote code for updates..."
 		git fetch
-		if ! git diff --quiet --exit-code; then
+		if ! git diff origin/${BRANCH} --quiet; then
 			echo "Updated code is available."
 		else
 			echo "No updates available."