]> granicus.if.org Git - esp-idf/commitdiff
add_path.sh: Fix reuse the script
authorAnton Maklakov <anton@espressif.com>
Tue, 27 Nov 2018 05:23:40 +0000 (13:23 +0800)
committerAngus Gratton <gus@projectgus.com>
Wed, 28 Nov 2018 00:08:28 +0000 (11:08 +1100)
add_path.sh

index 71257aa77af8129cb16d9408739c132b3773d813..bfc27bb49fa1541222183183a5f64cb17bbd66c3 100644 (file)
@@ -9,6 +9,7 @@
 if [ -z ${IDF_PATH} ]; then
        echo "IDF_PATH must be set before including this script."
 else
+       IDF_ADD_PATHS_EXTRAS=
        IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/esptool_py/esptool"
        IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/espcoredump"
        IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/partition_table/"