Skip to content

Commit 7c466b9

Browse files
authored
Fix build of build Platformio manifest (fail in second run)
1 parent bf616da commit 7c466b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,11 @@ fi
244244

245245
# Generate PlatformIO manifest file
246246
if [ "$BUILD_TYPE" = "all" ]; then
247-
python3 ./tools/gen_platformio_manifest.py -o "$TOOLS_JSON_OUT/" -s $(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD) -c $(git -C "$IDF_PATH" rev-parse --short HEAD)
247+
pushd $IDF_PATH
248+
ibr=$(git branch --show-current)
249+
ic=$(git -C "$IDF_PATH" rev-parse --short HEAD)
250+
popd
251+
python3 ./tools/gen_platformio_manifest.py -o "$TOOLS_JSON_OUT/" -s "$ibr" -c "$ic"
248252
if [ $? -ne 0 ]; then exit 1; fi
249253
fi
250254

0 commit comments

Comments
 (0)