mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-04 16:10:28 +01:00
Update dockcheck.sh
With longer first line the version check doesn't work correctly any longer.
This commit is contained in:
parent
eeb3887879
commit
3ce04ddd5d
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ VERSION="v0.1.8"
|
||||||
Github="https://github.com/mag37/dockcheck"
|
Github="https://github.com/mag37/dockcheck"
|
||||||
|
|
||||||
### Check if there's a new release of the script:
|
### 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 '"')"
|
LatestRelease="$(curl -s -r 0-40 https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')"
|
||||||
[ "$VERSION" != "$LatestRelease" ] && printf "New version available! Latest: %s - Local: %s \nGrab it here: %s \n\n" "$LatestRelease" "$VERSION" "$Github"
|
[ "$VERSION" != "$LatestRelease" ] && printf "New version available! Latest: %s - Local: %s \nGrab it here: %s \n\n" "$LatestRelease" "$VERSION" "$Github"
|
||||||
|
|
||||||
### Help Function:
|
### Help Function:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue