diff --git a/bin/updatechecker b/bin/updatechecker index 662f7bc8..992321c4 100755 --- a/bin/updatechecker +++ b/bin/updatechecker @@ -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"