Fix updatechecker

This commit is contained in:
JeremyStar™ 2023-12-13 20:25:31 +01:00
parent 89f5c5711e
commit 0276a7b4c6

View file

@ -8,7 +8,7 @@ export "COMMIT=$(env PAGER= git log -n 1 --pretty=format:\"%H\")"
export "LATEST_COMMIT=$(curl -sX 'GET' 'https://git.staropensource.de/api/v1/repos/JeremyStarTM/punktdateien/branches/develop' -H 'accept: application/json'|jq --monochrome-output '.commit.id')"
export "LATEST_COMMIT_MESSAGE=$(curl -sX 'GET' 'https://git.staropensource.de/api/v1/repos/JeremyStarTM/punktdateien/branches/develop' -H 'accept: application/json'|jq --monochrome-output '.commit.message'|sed 's/\\n//g')"
if [ "$COMMIT" == "$LATEST_COMMIT" ] || [ -n "$COMMIT" ]; then
if [ "$COMMIT" == "$LATEST_COMMIT" ] || [ -z "$LATEST_COMMIT" ]; then
export "UPDATE=false"
else
export "UPDATE=true"