mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-11-27 20:48:17 +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))"
|
m="$((uptime / 60 % 60))"
|
||||||
|
|
||||||
## Kernel
|
## Kernel
|
||||||
read -r version < /proc/version
|
read -r _ _ version _ < /proc/version
|
||||||
set -- $version
|
kernel="${version%%-*}"
|
||||||
kernel="${3%%-*}"
|
|
||||||
case $version in
|
case $version in
|
||||||
*Microsoft*) [ "$ID" ] && ID="fake $ID";;
|
*Microsoft*) [ "$ID" ] && ID="fake $ID";;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in new issue
Block a user