Преглед изворни кода

Merge branch 'bugfix/windows_install_prerequisites_idf_path' into 'master'

windows_install_prerequisites: Fix bug if IDF_PATH is not set

See merge request idf/esp-idf!3874
Angus Gratton пре 7 година
родитељ
комит
ee7b660163
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      tools/windows/windows_install_prerequisites.sh

+ 2 - 2
tools/windows/windows_install_prerequisites.sh

@@ -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/