From f7a21edbade960ff9774f6e1ee03fa4e91300210 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Fri, 21 Jan 2022 01:40:47 +0800 Subject: [PATCH] checknupdate: fix when branch is still mainline match patchlevel dot as well to avoid matching mainline --- checknupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checknupdate.sh b/checknupdate.sh index 9d92892..fa637b7 100755 --- a/checknupdate.sh +++ b/checknupdate.sh @@ -7,7 +7,7 @@ CURR_PATCHLEVEL=$(echo $VER | cut -d '.' -f 2) CURR_SUBLEVEL=$(echo $VER | cut -d '.' -f 3) CURR_BRANCH=$CURR_VERSION.$CURR_PATCHLEVEL -VERSION=$(curl https://www.kernel.org/releases.json | jq -r '.releases[].version' | grep "^$CURR_VERSION\.$CURR_PATCHLEVEL") +VERSION=$(curl https://www.kernel.org/releases.json | jq -r '.releases[].version' | grep "^$CURR_VERSION\.$CURR_PATCHLEVEL\.") if [ ! -n "$VERSION" ];then echo "Error: $CURR_BRANCH may be EOLed" -- 2.45.2