diff options
Diffstat (limited to 'check-kernel.in')
-rw-r--r-- | check-kernel.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/check-kernel.in b/check-kernel.in index 9c2f2e4..b25b0c7 100644 --- a/check-kernel.in +++ b/check-kernel.in @@ -99,6 +99,18 @@ else tail -n1 ) fi +installed=$( + printf '%s\n' "${installed}" | \ + sed ' + s/\(\.0\)\+$// + ' +) +running=$( + printf '%s\n' "${running}" | \ + sed ' + s/\(\.0\)\+$// + ' +) if [ -z "${installed}" ] || \ [ "$(echo "${installed}" | wc -l)" -ne 1 ]; then |