summaryrefslogtreecommitdiff
path: root/sys.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sys.sh')
-rwxr-xr-xsys.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys.sh b/sys.sh
index deb588d..4146384 100755
--- a/sys.sh
+++ b/sys.sh
@@ -16,7 +16,7 @@ function cuteol {
done
}
-INSTALLED=$(file /boot/vmlinuz-linux | grep -o "[0-9a-z.-]\+-ARCH")
+INSTALLED=$(file /boot/vmlinuz-linux | sed -n "s/^.*version \([^ ]\+\) .*$/\1/p")
CURRENT=$(uname -r)
KERNEL=$(echo $CURRENT | cut -d- -f1)