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