mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
fix per suggestion
This commit is contained in:
7
neofetch
7
neofetch
@@ -1210,10 +1210,11 @@ get_kernel() {
|
||||
return
|
||||
}
|
||||
|
||||
# In Windows 'uname -r' under MSYS returns version of MSYS, so use wmic
|
||||
# In Windows 'uname' may return the info of GNUenv thus use wmic for OS kernel
|
||||
[[ "$os" == Windows ]] && {
|
||||
kernel_version=$(wmic os get Version)
|
||||
kernel_version="${kernel_version/Version}"
|
||||
kernel=$(wmic os get Version)
|
||||
kernel="${kernel/Version}"
|
||||
return
|
||||
}
|
||||
|
||||
case "$kernel_shorthand" in
|
||||
|
Reference in New Issue
Block a user