windows_install_prerequisites: Fix bug if IDF_PATH is not set

if IDF_PATH is empty, [ -n ] test passes needs to be [ -n "" ]

Closes https://github.com/espressif/esp-idf/issues/2769

TW27714
pull/2869/head
Angus Gratton 2018-12-04 11:02:49 +11:00 zatwierdzone przez Angus Gratton
rodzic 3bc970c5f4
commit 4c8c88af22
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -37,8 +37,8 @@ pacman --noconfirm -S --needed gettext-devel gcc git make ncurses-devel flex bis
mingw-w64-i686-python2-pip mingw-w64-i686-python2-cryptography unzip winpty
# if IDF_PATH is set, install requirements now as well
if [ -n $IDF_PATH ]; then
python -m pip install -r $IDF_PATH/requirements.txt
if [ -n "$IDF_PATH" ]; then
python -m pip install -r "$IDF_PATH/requirements.txt"
fi
# Automatically download precompiled toolchain, unpack at /opt/xtensa-esp32-elf/