8000 Fix date parser in release script · strv/arduino-esp32@7438c6e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7438c6e

Browse files
committed
Fix date parser in release script
1 parent f3b5994 commit 7438c6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/scripts/on-release.sh

Lines changed: 2 additions & 1 deletion
< 5AFA td data-grid-cell-id="diff-f6fb1aba88970cb53fc594d346daf15296b027a9c2c46d9af53b8952afdf3c5b-315-314-2" data-line-anchor="diff-f6fb1aba88970cb53fc594d346daf15296b027a9c2c46d9af53b8952afdf3c5bL315" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-deletionLine-bgColor, var(--diffBlob-deletion-bgColor-line));padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell left-side-diff-cell border-right left-side">-
RVTC_VERSION=`date -j -f '%Y%m%d' "$RVTC_VERSION" '+%y%m'`
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ PACKAGE_JSON_TEMPLATE="$OUTPUT_DIR/package-$LIBS_PROJ_NAME.json"
312312
## TEMP WORKAROUND FOR RV32 LONG PATH ON WINDOWS
313313
##
314314
RVTC_VERSION=`cat $PACKAGE_JSON_TEMPLATE | jq -r ".packages[0].platforms[0].toolsDependencies[] | select(.name == \"$RVTC_NAME\") | .version" | cut -d '_' -f 2`
315
315+
# RVTC_VERSION=`date -j -f '%Y%m%d' "$RVTC_VERSION" '+%y%m'` # MacOS
316+
RVTC_VERSION=`date -d "$RVTC_VERSION" '+%y%m'`
316317
rvtc_jq_arg="\
317318
(.packages[0].platforms[0].toolsDependencies[] | select(.name==\"$RVTC_NAME\")).version = \"$RVTC_VERSION\" |\
318319
(.packages[0].platforms[0].toolsDependencies[] | select(.name==\"$RVTC_NAME\")).name = \"$RVTC_NEW_NAME\" |\

0 commit comments

Comments
 (0)
0