mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-27 17:43:07 +08:00
chg: empty call to powershell.exe triggers colors on ProxSpace
This commit is contained in:
parent
0bcec9a3fb
commit
a5b406bffa
1 changed files with 6 additions and 1 deletions
7
pm3
7
pm3
|
@ -354,6 +354,12 @@ else
|
||||||
echo >&2 "[!!] Script ran under unknown name, abort: $SCRIPT"
|
echo >&2 "[!!] Script ran under unknown name, abort: $SCRIPT"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
|
||||||
HELP
|
HELP
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -389,7 +395,6 @@ if [ "$1" == "-n" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
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 -q Microsoft; then
|
||||||
# Test presence of wmic
|
# Test presence of wmic
|
||||||
|
|
Loading…
Reference in a new issue