mirror of
https://github.com/badgeteam/mch2022-template-app.git
synced 2024-11-15 21:21:04 +00:00
20 lines
248 B
Bash
20 lines
248 B
Bash
|
#!/usr/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
cd esp-idf
|
||
|
source ./export.sh
|
||
|
cd ../
|
||
|
|
||
|
cd factory_test
|
||
|
|
||
|
if [ "$#" -eq 1 ]; then
|
||
|
idf.py monitor -p $1
|
||
|
else
|
||
|
if [ "$#" -ne 0 ]; then
|
||
|
echo "Illegal number of parameters"
|
||
|
else
|
||
|
idf.py monitor
|
||
|
fi
|
||
|
fi
|