2
0
Эх сурвалжийг харах

[Update] Better update check...

andre.peters 7 жил өмнө
parent
commit
8ce9d14e07
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      update.sh

+ 1 - 1
update.sh

@@ -73,7 +73,7 @@ while (($#)); do
     --check|-c)
       echo "Checking remote code for updates..."
       git fetch origin ${BRANCH}
-      if ! git diff origin/${BRANCH} --quiet; then
+      if [[ $(git branch ${BRANCH} --contains $(git rev-parse origin/${BRANCH}) > /dev/null 2> /dev/null; echo $?) != 0 ]]; then
         echo "Updated code is available."
         exit 0
       else