Skip to content

Commit

Permalink
Correct quoting in command used to set platform.txt version value
Browse files Browse the repository at this point in the history
Single quotes caused what was intended to be a reference to the VERSION variable to instead be a string, resulting in the value of the platform.txt version property being set to "$VERSION":

version=$VERSION
  • Loading branch information
per1234 authored Apr 22, 2021
1 parent e50ec8a commit e0aaf4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ mv _bootloaders bootloaders

#Patch title in platform.txt
sed -i "s/Arduino Mbed OS Boards/Arduino Mbed OS ${FLAVOUR^} Boards/g" platform.txt
sed -i 's/9.9.9/$VERSION/g' platform.txt
sed -i "s/9.9.9/$VERSION/g" platform.txt

BASE_FOLDER=`basename $PWD`

Expand All @@ -77,4 +77,4 @@ echo FILENAME=ArduinoCore-mbed-$VERSION.tar.bz2 > /tmp/env
else
echo FILENAME=ArduinoCore-mbed-$FLAVOUR-$VERSION.tar.bz2 > /tmp/env
fi
cd -
cd -

0 comments on commit e0aaf4a

Please sign in to comment.