Skip to content

Commit dbaf3e7

Browse files
committed
Fix $IDF_VERSION
1 parent c490af2 commit dbaf3e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,11 @@ export IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD)
318318

319319
# Generate PlatformIO library manifest file
320320
if [ "$BUILD_TYPE" = "all" ]; then
321-
python3 ./tools/gen_pio_lib_manifest.py -o "$TOOLS_JSON_OUT/" -s "v$IDF_VERSION" -c "$IDF_COMMIT"
321+
pushd $IDF_PATH
322+
ibr=$(git describe --all --exact-match 2>/dev/null)
323+
ic=$(git -C "$IDF_PATH" rev-parse --short HEAD)
324+
popd
325+
python3 ./tools/gen_pio_lib_manifest.py -o "$TOOLS_JSON_OUT/" -s "$ibr" -c "$ic"
322326
if [ $? -ne 0 ]; then exit 1; fi
323327
fi
324328

0 commit comments

Comments
 (0)