diff --git a/tools/copy-libs.sh b/tools/copy-libs.sh index 738fd3f98..e132124c3 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