forgot quoting.

Quote the variables... again.
This commit is contained in:
mag37 2023-02-02 22:07:33 +01:00 committed by GitHub
parent 08175c87ab
commit bde81aad22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ Github="https://github.com/mag37/dockcheck"
### Check if there's a new release of the script:
LatestRelease="$(curl -s -r 0-30 https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')"
[ $VERSION != $LatestRelease ] && printf "New version available! Latest: $LatestRelease - Local: $VERSION \nGrab it here: $Github \n"
[ "$VERSION" != "$LatestRelease" ] && printf "New version available! Latest: "$LatestRelease" - Local: "$VERSION" \nGrab it here: "$Github" \n\n"
### Help Function:
Help() {