From 96bb6aeb178182c95558c5157b6ddfaecfceb785 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 7 Nov 2023 11:04:34 -0700 Subject: shell script cleanup (fix lint warnings, remove unused scripts) --- bin/detect-mcu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/detect-mcu.sh') diff --git a/bin/detect-mcu.sh b/bin/detect-mcu.sh index 8a93e21..57670e2 100755 --- a/bin/detect-mcu.sh +++ b/bin/detect-mcu.sh @@ -15,7 +15,7 @@ TARGET=$1 while [ -n "$TARGET" ]; do #echo "... $TARGET" if [ -f "$TARGET" ]; then # use the dir/$UI.h file - ATTINY=$(grep 'ATTINY:' $TARGET | awk '{ print $3 }') + ATTINY=$(grep 'ATTINY:' "$TARGET" | awk '{ print $3 }') if [ -n "$ATTINY" ]; then echo "export MCUNAME=attiny${ATTINY}" echo "export MCU=0x${ATTINY}" @@ -39,7 +39,7 @@ while [ -n "$TARGET" ]; do # move up one dir # if target doesn't change here, exit to avoid infinite loop FOO="$TARGET" - TARGET=$(dirname $TARGET) + TARGET=$(dirname "$TARGET") [ "$FOO" = "$TARGET" ] && exit 1 done -- cgit v1.2.3