mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-26 05:27:29 +02:00
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>
This commit is contained in:
parent
446907944a
commit
82043fcf80
@ -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…
x
Reference in New Issue
Block a user