Skip to content

Commit 1487040

Browse files
Copilotvgoehler
andauthored
fix: improve curl error visibility and remove broken Makefile comment
Agent-Logs-Url: https://github.com/TUBAF-IfI-LiaScript/TUBAF-IfI-LiaScript.github.io/sessions/6d799220-3d5f-4288-8c91-c0766451b799 Co-authored-by: vgoehler <1705385+vgoehler@users.noreply.github.com>
1 parent bef3e8c commit 1487040

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

scripts/download_upstream_pdfs.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if [ -n "${GITHUB_TOKEN:-}" ]; then
4646
fi
4747

4848
echo "🔍 Checking upstream releases for VL_${REPO_NAME}..."
49-
API_RESPONSE=$(curl -sL --connect-timeout 15 "${CURL_AUTH[@]}" "$API_URL" 2>/dev/null)
49+
API_RESPONSE=$(curl -sL --connect-timeout 15 "${CURL_AUTH[@]}" "$API_URL")
5050

5151
# Check for API error / rate-limit response
5252
if echo "$API_RESPONSE" | grep -q '"message"' && ! echo "$API_RESPONSE" | grep -q '"assets"'; then
@@ -110,8 +110,12 @@ for i in "${!NAMES[@]}"; do
110110
already_present=$((already_present + 1))
111111
else
112112
echo " ⬇️ Downloading ${name}..."
113-
curl -sL --connect-timeout 30 "${CURL_AUTH[@]}" -o "$target" "$url"
114-
downloaded=$((downloaded + 1))
113+
if ! curl -fsSL --connect-timeout 30 "${CURL_AUTH[@]}" -o "$target" "$url"; then
114+
echo " ⚠️ Failed to download ${name} from ${url}" >&2
115+
rm -f "$target"
116+
else
117+
downloaded=$((downloaded + 1))
118+
fi
115119
fi
116120
done
117121

0 commit comments

Comments
 (0)