瀏覽代碼

Fix update check

andryyy 8 年之前
父節點
當前提交
426b597d02
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      update.sh

+ 1 - 1
update.sh

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