deploy.sh: Fix calculation error.
This commit is contained in:
parent
4a3e79f02e
commit
bcf7625285
@ -27,7 +27,7 @@ done <<< "$vers"
|
|||||||
read -p "Version to generate: " VERSION
|
read -p "Version to generate: " VERSION
|
||||||
|
|
||||||
OTA_VERSION=`grep "VERSION=" bin/update.manifest | cut -d"=" -f2`
|
OTA_VERSION=`grep "VERSION=" bin/update.manifest | cut -d"=" -f2`
|
||||||
OTA_VERSION=$(( "$OTA_VERSION" + 1 ))
|
OTA_VERSION=$(( $OTA_VERSION + 1 ))
|
||||||
|
|
||||||
sed -i.bak "s/#define OTA_VERSION .*/#define OTA_VERSION $OTA_VERSION/" include/config.h include/config.sample.h
|
sed -i.bak "s/#define OTA_VERSION .*/#define OTA_VERSION $OTA_VERSION/" include/config.h include/config.sample.h
|
||||||
rm include/config.h.bak include/config.sample.h.bak
|
rm include/config.h.bak include/config.sample.h.bak
|
||||||
|
Loading…
Reference in New Issue
Block a user