diff LoadFile/winload.teensy @ 281:71882cd1c362

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
author Rowan Decker <Smasher816@gmail.com>
date Thu, 12 Feb 2015 19:42:01 -0800
parents 2a3468f5d8be
children 99f93dec8fea
line wrap: on
line diff
--- a/LoadFile/winload.teensy	Thu Feb 12 19:37:19 2015 -0800
+++ b/LoadFile/winload.teensy	Thu Feb 12 19:42:01 2015 -0800
@@ -49,7 +49,7 @@
 	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