diff options
Diffstat (limited to '')
| -rwxr-xr-x | bin/detect-mcu.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/detect-mcu.sh b/bin/detect-mcu.sh index 64bce96..761eac1 100755 --- a/bin/detect-mcu.sh +++ b/bin/detect-mcu.sh @@ -36,6 +36,10 @@ while [ -n "$TARGET" ]; do fi fi fi + # move up one dir + # if target doesn't change here, exit to avoid infinite loop + FOO="$TARGET" TARGET=$(dirname $TARGET) + [ "$FOO" = "$TARGET" ] && exit 1 done |
