Merge pull request #544 from maximbaz/use-different-exit-codes-on-updates-check
Use different exit code on updates check
This commit is contained in:
commit
e9be01767c
@ -51,10 +51,11 @@ case "${1}" in
|
|||||||
git fetch origin ${BRANCH}
|
git fetch origin ${BRANCH}
|
||||||
if ! git diff origin/${BRANCH} --quiet; then
|
if ! git diff origin/${BRANCH} --quiet; then
|
||||||
echo "Updated code is available."
|
echo "Updated code is available."
|
||||||
|
exit 0
|
||||||
else
|
else
|
||||||
echo "No updates available."
|
echo "No updates available."
|
||||||
|
exit 3
|
||||||
fi
|
fi
|
||||||
exit 0
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user