Skip to content

Commit 91159ed

Browse files
authored
Update archive-build.sh
1 parent 5b950ae commit 91159ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/archive-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD)
4-
IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD)
3+
IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "")
4+
IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || echo "")
55

66
idf_version_string=${IDF_BRANCH//\//_}"-$IDF_COMMIT"
77
archive_path="dist/arduino-esp32-libs-$idf_version_string.tar.gz"

0 commit comments

Comments
 (0)