Use different exit code on updates check

Enables some scripting, e.g. putting this in a cron job:

    ./update.sh --check && <notify-me-about-available-updates>
master
Maxim Baz 2017-09-02 14:20:55 +02:00
parent 446907944a
commit 82043fcf80
1 changed files with 2 additions and 1 deletions

View File

@ -51,10 +51,11 @@ case "${1}" in
git fetch origin ${BRANCH}
if ! git diff origin/${BRANCH} --quiet; then
echo "Updated code is available."
exit 0
else
echo "No updates available."
exit 3
fi
exit 0
;;
esac