Skip to content

Commit

Permalink
chg: empty call to powershell.exe triggers colors on ProxSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Jun 24, 2020
1 parent 0bcec9a commit a5b406b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pm3
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,12 @@ else
echo >&2 "[!!] Script ran under unknown name, abort: $SCRIPT"
exit 1
fi

HOSTOS=$(uname | awk '{print toupper($0)}')
if [[ "$HOSTOS" =~ MINGW(32|64)_NT* ]]; then
$(powershell.exe -command "Out-Null")
fi

if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
HELP
exit 0
Expand Down Expand Up @@ -389,7 +395,6 @@ if [ "$1" == "-n" ]; then
fi
fi

HOSTOS=$(uname | awk '{print toupper($0)}')
if [ "$HOSTOS" = "LINUX" ]; then
if uname -a|grep -q Microsoft; then
# Test presence of wmic
Expand Down

0 comments on commit a5b406b

Please sign in to comment.