mirror of
https://github.com/badgeteam/mch2022-template-app.git
synced 2024-11-14 04:31:21 +00:00
18 lines
281 B
Bash
Executable file
18 lines
281 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
|
|
export IDF_PATH="$PWD/esp-idf"
|
|
export IDF_EXPORT_QUIET=0
|
|
source "$IDF_PATH"/export.sh
|
|
|
|
if [ "$#" -eq 2 ]; then
|
|
idf.py $2 -p $1
|
|
else
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Illegal number of parameters"
|
|
else
|
|
idf.py $1
|
|
fi
|
|
fi
|