pve-kernel-thunderx/scripts/check.sh
Fabian Mastenbroek ed0d145cdc
Add workflow for weekly update checks
This change adds a workflow that will check weekly whether a new release
is available for the current actively maintained Linux stable branches.
2020-11-12 17:51:56 +01:00

10 lines
330 B
Bash
Executable file

#1/bin/bash
# Script to check for new kernel release
set -e
set -o pipefail
MAJOR=$(echo $1 | sed -e "s/^v//" -e "s/\.[^.]*$//")
CURRENT=$(scripts/version.sh -L)
NEW=$(curl -s https://www.kernel.org/releases.json | jq -r ".releases[]|select(.version | startswith(\"$MAJOR\")) | .version")
[[ "$CURRENT" = "$NEW" ]] || echo $NEW