Fix updatechecker
This commit is contained in:
parent
89f5c5711e
commit
0276a7b4c6
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue