diff --git a/neofetch b/neofetch index 0b2358b3..e051622e 100755 --- a/neofetch +++ b/neofetch @@ -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 }