diff options
Diffstat (limited to '')
| -rwxr-xr-x | bin/detect-mcu.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
