fix WSL2 detection route. some linux distro spells with small letters

This commit is contained in:
iceman1001 2023-02-19 08:07:32 +01:00
commit cf6b2d9597

2
pm3
View file

@ -474,7 +474,7 @@ fi
HOSTOS=$(uname | awk '{print toupper($0)}') HOSTOS=$(uname | awk '{print toupper($0)}')
if [ "$HOSTOS" = "LINUX" ]; then if [ "$HOSTOS" = "LINUX" ]; then
if uname -a|grep -q Microsoft; then if uname -a|grep -qi Microsoft; then
# First try finding it using the PATH environment variable # First try finding it using the PATH environment variable
PSHEXE=$(command -v powershell.exe 2>/dev/null) PSHEXE=$(command -v powershell.exe 2>/dev/null)