Skip to content

Commit 281dda0

Browse files
authored
Fix infinite loop if repo clone is renamed
If the repo clone directory was not named esp32-arduino-lib-builder, the script ran into an infinite loop.
1 parent 19c6911 commit 281dda0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/copy-libs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ for item; do
357357
ipath="$item"
358358
fname=`basename "$ipath"`
359359
dname=`basename $(dirname "$ipath")`
360-
if [[ "$fname" == "main" && "$dname" == "esp32-arduino-lib-builder" ]]; then
360+
if [[ "$fname" == "main" && "$dname" == $(basename "$PWD") ]]; then
361361
continue
362362
fi
363363
while [[ "$dname" != "components" && "$dname" != "build" ]]; do

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy