mch2022-talktopics/command.sh
Renze Nicolai 932246024c More tests
2022-01-12 00:53:38 +01:00

20 lines
298 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
cd factory_test
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