diff --git a/osdetect.sh b/osdetect.sh index 2125179..3a493af 100644 --- a/osdetect.sh +++ b/osdetect.sh @@ -1,6 +1,5 @@ #!/bin/bash - -if [ "uname -r | grep -oE microsoft" = "microsoft" ] +if [ "uname -r | grep -oE microsoft" = "microsoft" ] || [ $(uname -r | grep -oE Microsoft) = "Microsoft" ] then OS=windows #echo ${red}WSL Not Supported!${reset} 1>&2