neofetch: nitpicks

This commit is contained in:
Dylan Araps 2019-10-30 12:31:55 +00:00
parent ed02764ec0
commit efc289463c
No known key found for this signature in database
GPG key ID: 46D62DD9F1DE636E

View file

@ -1217,10 +1217,10 @@ get_kernel() {
return
}
# In Windows 'uname' may return the info of GNUenv thus use wmic for OS kernel
[[ "$os" == Windows ]] && {
# In Windows 'uname' may return the info of GNUenv thus use wmic for OS kernel.
[[ $os == Windows ]] && {
kernel=$(wmic os get Version)
kernel="${kernel/Version}"
kernel=${kernel/Version}
return
}