From 685f87db3c65535a42fbfa09ceddd2e4f42f3704 Mon Sep 17 00:00:00 2001 From: rtrbt <9214823+rtrbt@users.noreply.github.com> Date: Tue, 18 Jul 2023 13:54:57 +0200 Subject: [PATCH] Fix infinite loop if repo clone is renamed (#75) If the repo clone directory was not named esp32-arduino-lib-builder, the script ran into an infinite loop. --- tools/copy-libs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/copy-libs.sh b/tools/copy-libs.sh index 738fd3f..e132124 100755 --- a/tools/copy-libs.sh +++ b/tools/copy-libs.sh @@ -359,7 +359,7 @@ for item; do ipath="$item" fname=`basename "$ipath"` dname=`basename $(dirname "$ipath")` - if [[ "$fname" == "main" && "$dname" == "esp32-arduino-lib-builder" ]]; then + if [[ "$fname" == "main" && "$dname" == $(basename "$PWD") ]]; then continue fi while [[ "$dname" != "components" && "$dname" != "managed_components" && "$dname" != "build" ]]; do