Fix update checker code

This commit is contained in:
JeremyStar™ 2024-06-02 17:19:06 +02:00
parent 03df509a43
commit 7c60ac497a
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -20,8 +20,8 @@ else
exit 1
fi
if [ "$COMMIT" == "$LATEST_COMMIT" ] || [ -z "$LATEST_COMMIT" ]; then
UPDATE=false
if [ "${COMMIT}" == "${LATEST_COMMIT}" ] || [ -z "${LATEST_COMMIT}" ]; then
UPDATE=
else
UPDATE=true
fi
@ -41,6 +41,6 @@ if [ -z "${SCRIPTED}" ]; then
fi
else
if [ -n "${UPDATE}" ]; then
echo "$LATEST_COMMIT_MESSAGE"
echo "${LATEST_COMMIT_MESSAGE}"
fi
fi