|
|
@ -122,7 +122,7 @@ _absolute_filename() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_find_sketch() {
|
|
|
|
_find_sketch() {
|
|
|
|
if [ -z ${SKETCH_FILE_PATH} ] || [ ! -f ${SKETCH_FILE_PATH} ]; then
|
|
|
|
if [ -z "${SKETCH_FILE_PATH}" ] || [ ! -f "${SKETCH_FILE_PATH}" ]; then
|
|
|
|
# Didn't find a sketch
|
|
|
|
# Didn't find a sketch
|
|
|
|
echo "I couldn't find your sketch (.ino file)" >&2
|
|
|
|
echo "I couldn't find your sketch (.ino file)" >&2
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
@ -297,12 +297,6 @@ fi
|
|
|
|
: "${FQBN:=keyboardio:${ARCH}:${BOARD}}"
|
|
|
|
: "${FQBN:=keyboardio:${ARCH}:${BOARD}}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ $# -eq 2 ]; then
|
|
|
|
|
|
|
|
SKETCH="$1"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ $# -eq 1 ]; then
|
|
|
|
if [ $# -eq 1 ]; then
|
|
|
|
cmd="$(echo "$1" | tr '-' '_')"
|
|
|
|
cmd="$(echo "$1" | tr '-' '_')"
|
|
|
|
"cmd_${cmd}"
|
|
|
|
"cmd_${cmd}"
|
|
|
|