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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user