Skip to content

Commit 3639e68

Browse files
authored
get version from file
1 parent ffa7e98 commit 3639e68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/install-esp-idf.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [ ! -d "$IDF_PATH" ]; then
3737
idf_was_installed="1"
3838
else
3939
# update existing branch
40-
echo "ESP-IDF is already installed, updating branch '$IDF_BRANCH'"
40+
echo "ESP-IDF is already installed, updating branch $IDF_BRANCH"
4141
cd $IDF_PATH
4242
git pull
4343
git reset --hard $IDF_BRANCH
@@ -68,6 +68,12 @@ if [ ! -x $idf_was_installed ] || [ ! -x $commit_predefined ]; then
6868
cd $IDF_PATH
6969
patch -p1 -N -i ../patches/esp32s2_i2c_ll_master_init.diff
7070
cd -
71+
72+
# Get the exact IDF version from file "version.txt"
73+
cd $IDF_PATH
74+
export IDF_VERSION=$(<version.txt)
75+
echo "IDF version: $IDF_VERSION"
76+
cd -
7177
fi
7278

7379
#

0 commit comments

Comments
 (0)