fix per suggestion
This commit is contained in:
parent
2c3faf9469
commit
480b62edec
1 changed files with 4 additions and 3 deletions
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
|
||||
|
|
Loading…
Reference in a new issue