From bcf7625285e5ec995d29776d8fdff469368714af Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sat, 30 Nov 2019 00:14:02 +0100 Subject: [PATCH] deploy.sh: Fix calculation error. --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 3eb8203..d4b66bd 100755 --- a/deploy.sh +++ b/deploy.sh @@ -27,7 +27,7 @@ done <<< "$vers" read -p "Version to generate: " VERSION 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 rm include/config.h.bak include/config.sample.h.bak