mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-10-17 10:49:31 +00:00
Handle version differently
This commit is contained in:
1 parent
04ec7b4155
commit
31b80bd4fd
1 file changed
+2
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user