From 3ce04ddd5dde7ecd33283a2c06490b2b92551733 Mon Sep 17 00:00:00 2001 From: Alex <6181345+nnmalex@users.noreply.github.com> Date: Wed, 15 Feb 2023 15:17:23 +0000 Subject: [PATCH] Update dockcheck.sh With longer first line the version check doesn't work correctly any longer. --- dockcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockcheck.sh b/dockcheck.sh index 2ff2559..7471430 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -3,7 +3,7 @@ VERSION="v0.1.8" 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 '"')" +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" ### Help Function: