Merge pull request #87 from SeraphimSerapis/fix_wheels_download

fix: skip empty lines in wheel download read loop
This commit is contained in:
eugr
2026-03-07 09:34:31 -08:00
committed by GitHub

View File

@@ -198,6 +198,7 @@ if downloads:
local URL NAME TMP_WHL local URL NAME TMP_WHL
local DOWNLOADED=() local DOWNLOADED=()
while IFS=' ' read -r URL NAME; do while IFS=' ' read -r URL NAME; do
[ -z "$URL" ] && continue
echo "Downloading $NAME..." echo "Downloading $NAME..."
TMP_WHL=$(mktemp "$WHEELS_DIR/${NAME}.XXXXXX") TMP_WHL=$(mktemp "$WHEELS_DIR/${NAME}.XXXXXX")
if curl -L --progress-bar --connect-timeout 30 "$URL" -o "$TMP_WHL"; then if curl -L --progress-bar --connect-timeout 30 "$URL" -o "$TMP_WHL"; then