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.
This commit is contained in:
Tim Messerschmidt
2026-03-07 05:06:12 +01:00
parent 9dc09bd04b
commit b9fc32ec34

View File

@@ -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