From db824bfee2196f1a38c554ac859c4852ebd8b3c0 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 14 Nov 2020 23:57:11 -0800 Subject: [PATCH] shellcheck fixes --- bin/kaleidoscope-builder | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 0d17f6af..08c7e4a3 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -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}"