env: Remove usage of -P in grep

Since -P is not supported in non-GNU versions of grep, avoid using it
now that it is no longer required (no "|" operator anymore inside the
regex).

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2017-07-15 18:13:36 +02:00 committed by Andrew Boie
commit 4e5757d2cc

View file

@ -35,7 +35,7 @@ fi
# .zephyrrc in your home directory. It will be automatically # .zephyrrc in your home directory. It will be automatically
# run (if it exists) by this script. # run (if it exists) by this script.
if uname | grep -q -P "MINGW"; then if uname | grep -q "MINGW"; then
win_build=1 win_build=1
PWD_OPT="-W" PWD_OPT="-W"
else else