Check for needed programs
Check for dfu-util and screen before using them. Also aborts if teensy_loader_cli compilation fails. Uses the type builtin to determine if a command exists. See here: https://gist.github.com/sdelmas/7377271
This commit is contained in:
parent
88ace02e51
commit
8d4adb41ec
3 changed files with 23 additions and 8 deletions
|
@ -49,7 +49,7 @@ if [ ! -e teensy-loader-cli/teensy-loader-cli ]; then
|
|||
mkdir -p teensy-loader-cli
|
||||
cd teensy-loader-cli
|
||||
cmake -G "Unix Makefiles" $(cygpath -u @CMAKE_SOURCE_DIR@/LoadFile)
|
||||
make
|
||||
make || exit 3
|
||||
cd -
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue