Skip to content

Commit 685f87d

Browse files
authored
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.
1 parent ace36a9 commit 685f87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tools/copy-libs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ for item; do
359359
ipath="$item"
360360
fname=`basename "$ipath"`
361361
dname=`basename $(dirname "$ipath")`
362-
if [[ "$fname" == "main" && "$dname" == "esp32-arduino-lib-builder" ]]; then
362+
if [[ "$fname" == "main" && "$dname" == $(basename "$PWD") ]]; then
363363
continue
364364
fi
365365
while [[ "$dname" != "components" && "$dname" != "managed_components" && "$dname" != "build" ]]; do

0 commit comments

Comments
 (0)