shellcheck fixes

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent d8c8549e1d
commit db824bfee2
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

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

Loading…
Cancel
Save