Browse Source

bash compares strings with ==, not with -eq ^_^

v2^2^2
Lazar Obradovic 6 years ago
parent
commit
0a8f98781e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/build.sh

+ 1
- 1
code/build.sh View File

@ -104,7 +104,7 @@ build_environments() {
for environment in $environments; do for environment in $environments; do
echo -n "* espurna-$version-$environment.bin --- " echo -n "* espurna-$version-$environment.bin --- "
platformio run --silent --environment $environment || exit 1 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 stat -f %z .pioenvs/$environment/firmware.bin
else else
stat -c %s .pioenvs/$environment/firmware.bin stat -c %s .pioenvs/$environment/firmware.bin


Loading…
Cancel
Save