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.
This commit is contained in:
parent
ace36a9bd9
commit
685f87db3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue