Handle version differently

This commit is contained in:
viz committed 2020-08-09 23:02:02 +05:30
1 parent 04ec7b4155
commit 31b80bd4fd
1 file changed
+2 -3
+2 -3
View File
@@ -100,9 +100,8 @@ h="$((uptime / 60 / 60 % 24))"
m="$((uptime / 60 % 60))"
## Kernel
read -r version < /proc/version
set -- $version
kernel="${3%%-*}"
read -r _ _ version _ < /proc/version
kernel="${version%%-*}"
case $version in
*Microsoft*) [ "$ID" ] && ID="fake $ID";;
esac