[Update] Better update check...

master
andre.peters 2018-01-26 22:40:00 +01:00
parent c7729f195b
commit 8ce9d14e07
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ while (($#)); do
--check|-c) --check|-c)
echo "Checking remote code for updates..." echo "Checking remote code for updates..."
git fetch origin ${BRANCH} 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." echo "Updated code is available."
exit 0 exit 0
else else