From 991ce537b350c57744e8c04333ff70484908cfeb Mon Sep 17 00:00:00 2001 From: Hans Elizaga Date: Mon, 9 Feb 2026 11:30:47 -0800 Subject: [PATCH] fix(copy): update directory matching logic to support patterns with slashes --- lib/copy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/copy.sh b/lib/copy.sh index c772364..464d5c1 100644 --- a/lib/copy.sh +++ b/lib/copy.sh @@ -235,7 +235,8 @@ copy_directories() { ;; esac - # Find directories matching the pattern name + # Find directories matching the pattern + # Use -path for patterns with slashes (e.g., vendor/bundle), -name for basenames while IFS= read -r dir_path; do [ -z "$dir_path" ] && continue @@ -362,7 +363,7 @@ EOF log_warn "Failed to copy directory $dir_path" fi done </dev/null) +$(if [[ "$pattern" == */* ]]; then find . -type d -path "./$pattern" 2>/dev/null; else find . -type d -name "$pattern" 2>/dev/null; fi) EOF done <