summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-06-18 12:42:55 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-06-18 12:42:55 +0200
commit1acb0bf5a2af3799e02028006bfec7d8325a0d42 (patch)
tree55a64ed9633500e106dc3c732219b22eb5bea9cc
parent1212daae5315a2fe075649bfc02553d8a590d684 (diff)
downloadcheck-kernel-1acb0bf5a2af3799e02028006bfec7d8325a0d42.tar.xz
make it work with artix kernels, too
-rw-r--r--check-kernel.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-kernel.in b/check-kernel.in
index ec76b6d..abf0da4 100644
--- a/check-kernel.in
+++ b/check-kernel.in
@@ -76,7 +76,7 @@ elif which pacman >/dev/null 2>&1; then
uname -r | \
sed '
s|-ARCH$||
- s|\(\.0\)\?-arch|.|
+ s#\(\.0\)\?-ar\(ch\|tix\)#.#
'
)
installed=$(
@@ -90,7 +90,7 @@ elif which pacman >/dev/null 2>&1; then
uniq -d
} | \
cut -d' ' -f2 | \
- sed 's/\.arch/./' | \
+ sed 's/\.ar\(ch\|tix\)/./' | \
sort -V | \
tail -n1
)