Skip to content

Commit ba2369e

Browse files
authored
Update build.sh
1 parent 07fd1c2 commit ba2369e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ done
178178

179179
# Add release-info
180180
rm -rf release-info.txt
181-
IDF_Commit_short=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "")
182-
AR_Commit_short=$(git -C "$AR_COMPS/arduino" rev-parse --short HEAD || echo "")
181+
IDF_Commit=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "")
182+
IDF_Commit_short=${IDF_Commit::7}
183+
AR_Commit=$(git -C "$AR_COMPS/arduino" rev-parse --short HEAD || echo "")
184+
AR_Commit_short=${AR_Commit::7}
183185
echo "Framework built from
184186
- $IDF_REPO branch [$IDF_BRANCH](https://github.com/$IDF_REPO/tree/$IDF_BRANCH) commit [$IDF_Commit_short](https://github.com/$IDF_REPO/commits/$IDF_BRANCH/#:~:text=$IDF_Commit_short)
185187
- $AR_REPO branch [$AR_BRANCH](https://github.com/$AR_REPO/tree/$AR_BRANCH) commit [$AR_Commit_short](https://github.com/$AR_REPO/commits/$AR_BRANCH/#:~:text=$AR_Commit_short)

0 commit comments

Comments
 (0)