From 55d837beb0ab0c21e8afad36d1857df37451781f Mon Sep 17 00:00:00 2001 From: LamGC Date: Fri, 9 Jan 2026 02:18:38 +0000 Subject: [PATCH] Improve update script with redirection support and robustness. --- update-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-version.sh b/update-version.sh index 57af44c..9858529 100644 --- a/update-version.sh +++ b/update-version.sh @@ -4,7 +4,7 @@ TEMP_JSON=$(mktemp) trap 'rm -f "$TEMP_JSON"' EXIT API_URL="https://api.github.com/repos/jenkinsci/docker-agent/releases/latest" -HTTP_CODE=$(curl -s -o "$TEMP_JSON" -w "%{http_code}" "$API_URL") +HTTP_CODE=$(curl -fsL -o "$TEMP_JSON" -w "%{http_code}" "$API_URL") if [ $? -ne 0 ]; then echo "Error: Network request failed." exit 1