From 0a8f98781eb08f4c78a55b726b1060ddaa26b709 Mon Sep 17 00:00:00 2001 From: Lazar Obradovic Date: Thu, 30 Aug 2018 22:00:48 +0200 Subject: [PATCH] bash compares strings with ==, not with -eq ^_^ --- code/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/build.sh b/code/build.sh index 5d43bea4..704f1346 100755 --- a/code/build.sh +++ b/code/build.sh @@ -104,7 +104,7 @@ build_environments() { for environment in $environments; do echo -n "* espurna-$version-$environment.bin --- " platformio run --silent --environment $environment || exit 1 - if [[ $(uname -s) -eq "Darwin" ]]; then + if [[ $(uname -s) == "Darwin" ]]; then stat -f %z .pioenvs/$environment/firmware.bin else stat -c %s .pioenvs/$environment/firmware.bin