Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7376676 commit 974f120Copy full SHA for 974f120
package.sh
@@ -80,11 +80,12 @@ CHKSUM=`sha256sum $FILENAME | awk '{ print $1 }'`
80
SIZE=`wc -c $FILENAME | awk '{ print $1 }'`
81
FLAVOUR_TAG=${FLAVOUR^^}_
82
FLAVOUR_NAME=${FLAVOUR,,}
83
+VERSION_NAME=${VERSION//./-}
84
85
cat ArduinoCore-mbed/extras/mbed_$FLAVOUR_NAME-tag.template.json |
86
sed "s/%%VERSION%%/${VERSION}/" |
87
sed "s/%%${FLAVOUR_TAG}FILENAME%%/${FILENAME}/" |
88
sed "s/%%${FLAVOUR_TAG}CHECKSUM%%/${CHKSUM}/" |
-sed "s/%%${FLAVOUR_TAG}SIZE%%/${SIZE}/" > mbed_$FLAVOUR_NAME-$VERSION.json
89
+sed "s/%%${FLAVOUR_TAG}SIZE%%/${SIZE}/" > mbed_$FLAVOUR_NAME-$VERSION_NAME.json
90
91
cd -
0 commit comments