From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Sat, 13 Jun 2020 03:32:46 +0200 Message-Id: <20200613013249.4288-4-rhi@pengutronix.de> In-Reply-To: <20200613013249.4288-1-rhi@pengutronix.de> References: <20200613013249.4288-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 4/7] ptxd_make_get: print out final redirected URL on dry run List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber Some SourceForge URLs seem to fail randomly. Log the redirected URL to facilitate debugging. Signed-off-by: Roland Hieber --- scripts/lib/ptxd_make_get.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh index 3ac0b71c2a83..d5003384619b 100644 --- a/scripts/lib/ptxd_make_get.sh +++ b/scripts/lib/ptxd_make_get.sh @@ -94,6 +94,7 @@ ptxd_make_get_http() { --location \ --head \ --request GET \ + --write-out '\n%{url_effective}\n' \ "${url}" && if grep -i "content-type:" "${temp_header}" | tail -n 1 | grep -q "text/html"; then ptxd_bailout "Got HTML file" -- 2.27.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de