Skip to content

Commit 7c7b4d0

Browse files
authored
Fix error at generating PlatformIO manifest (#157)
1 parent fbf8143 commit 7c7b4d0

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
@@ -276,7 +276,11 @@ fi
276276

277277
# Generate PlatformIO manifest file
278278
if [ "$BUILD_TYPE" = "all" ]; then
279-
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)
279+
pushd $IDF_PATH
280+
ibr=$(git describe --all --exact-match 2>/dev/null)
281+
ic=$(git -C "$IDF_PATH" rev-parse --short HEAD)
282+
popd
283+
python3 ./tools/gen_platformio_manifest.py -o "$TOOLS_JSON_OUT/" -s "$ibr" -c "$ic"
280284
if [ $? -ne 0 ]; then exit 1; fi
281285
fi
282286

0 commit comments

Comments
 (0)