Browse Source

Better filter for -ota envs

ech1560
Maxim Prokhorov 6 years ago
parent
commit
25c7a00c24
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      code/build.sh

+ 6
- 2
code/build.sh View File

@ -27,8 +27,12 @@ if [ ${par_thread} -ge ${par_total_threads} ]; then
fi
# Available environments
travis=$(grep env: platformio.ini | grep travis | sed 's/\[env://' | sed 's/\]/ /' | sort)
available=$(grep env: platformio.ini | grep -v ota | grep -v ssl | grep -v travis | sed 's/\[env://' | sed 's/\]/ /' | sort)
list_envs() {
grep env: platformio.ini | sed 's/\[env:\(.*\)\]/\1/g'
}
travis=$(list_envs | grep travis | sort)
available=$(list_envs | grep -Ev -- '-ota$|-ssl$|^travis' | sort)
# Build tools settings
export PLATFORMIO_BUILD_FLAGS="${PLATFORMIO_BUILD_FLAGS} -DAPP_REVISION='\"$git_revision\"'"


Loading…
Cancel
Save