From b9fc32ec348bbf06170e50c74974b8cf98ed8bac Mon Sep 17 00:00:00 2001 From: Tim Messerschmidt Date: Sat, 7 Mar 2026 05:06:12 +0100 Subject: [PATCH] fix: skip empty lines in wheel download read loop Add a guard to skip empty lines (e.g. trailing newlines) in the while-read loop to prevent try_download_wheels from breaking on unexpected blank input. --- build-and-copy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-and-copy.sh b/build-and-copy.sh index 24f5a02..44ee34c 100755 --- a/build-and-copy.sh +++ b/build-and-copy.sh @@ -198,6 +198,7 @@ if downloads: local URL NAME TMP_WHL local DOWNLOADED=() while IFS=' ' read -r URL NAME; do + [ -z "$URL" ] && continue echo "Downloading $NAME..." TMP_WHL=$(mktemp "$WHEELS_DIR/${NAME}.XXXXXX") if curl -L --progress-bar --connect-timeout 30 "$URL" -o "$TMP_WHL"; then