From d38b8a16d1262c4f4670792ef56d14c2c06d629e Mon Sep 17 00:00:00 2001 From: reachableceo Date: Tue, 1 Sep 2026 18:04:26 -0500 Subject: [PATCH] fix: repair clone-repos.sh URL filter that skipped every repo [#632] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old condition only accepted lines that contained whitespace, so every plain URL was skipped and the script was a silent no-op (0/0 clones). Strip each line and process all non-empty URLs. Detail: https://projects.knownelement.com/issues/632#note-1 💘 Generated with Crush Assisted-by: Crush:glm-5.2 --- clone-repos.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clone-repos.sh b/clone-repos.sh index 8fb5eee..6c3f098 100755 --- a/clone-repos.sh +++ b/clone-repos.sh @@ -108,7 +108,8 @@ successful_clones=0 failed_clones=0 while IFS= read -r url; do - if [ -n "$url" ] && [ "$url" != "$(echo "$url" | tr -d '[:space:]')" ]; then + url=$(printf '%s' "$url" | tr -d '[:space:]') + if [ -n "$url" ]; then total_repos=$((total_repos + 1)) # Extract repository name from URL