Compare commits

..

No commits in common. "bcf7625285e5ec995d29776d8fdff469368714af" and "f73d45404f2f822216cc02a3113d7332e12620bf" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -1,3 +0,0 @@
VERSION=1
IMAGE_PATH=https://files.schle.nz/esmp3/firmware.bin
IMAGE_MD5=00000000000000000000000000000000

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#set -x set -x
set -e #set -e
if ! git diff-index --quiet HEAD ; then if ! git diff-index --quiet HEAD ; then
echo "Git isn't clean. Cant deploy." echo "Git isn't clean. Cant deploy."
@ -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