~xdavidwu/linux-xdavidwu-xps

f7a21edbade960ff9774f6e1ee03fa4e91300210 — xdavidwu 2 years ago 36efa66
checknupdate: fix when branch is still mainline

match patchlevel dot as well to avoid matching mainline
1 files changed, 1 insertions(+), 1 deletions(-)

M checknupdate.sh
M checknupdate.sh => checknupdate.sh +1 -1
@@ 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"