mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
neofetch: nitpicks
This commit is contained in:
6
neofetch
6
neofetch
@@ -1217,10 +1217,10 @@ get_kernel() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# In Windows 'uname' may return the info of GNUenv thus use wmic for OS kernel
|
# In Windows 'uname' may return the info of GNUenv thus use wmic for OS kernel.
|
||||||
[[ "$os" == Windows ]] && {
|
[[ $os == Windows ]] && {
|
||||||
kernel=$(wmic os get Version)
|
kernel=$(wmic os get Version)
|
||||||
kernel="${kernel/Version}"
|
kernel=${kernel/Version}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user