[Update] Fix update check

master
andre.peters 2018-01-30 08:58:59 +01:00
parent 2c5f6bc24b
commit 81c1ed9e4d
1 changed files with 1 additions and 1 deletions

View File

@ -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