From 990de73f5a0673988dc0644293d3a51452da1458 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 14 Jun 2024 06:30:41 +0200 Subject: scripts/rsync-generation/mksnapshot: don't download a crap 404 message Fail instead of downloading a 404/403/500 whatever message. Bug: https://bugs.gentoo.org/934308 Signed-off-by: Fabian Groffen --- scripts/rsync-generation/mksnapshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rsync-generation/mksnapshot.sh b/scripts/rsync-generation/mksnapshot.sh index 4d45ef2727..9f0a26abbf 100755 --- a/scripts/rsync-generation/mksnapshot.sh +++ b/scripts/rsync-generation/mksnapshot.sh @@ -22,7 +22,7 @@ BOOTSTRAP_SNAPSHOT=$( \ sed -n 's/^.*PV="\([0-9]\+\)"\s*$/portage-\1.tar.bz2/p' \ ) if [[ ! -s "${BOOTSTRAP_SNAPSHOT}" ]] ; then - curl -s -L "https://distfiles.prefix.bitzolder.nl/prefix/distfiles/${BOOTSTRAP_SNAPSHOT}" > "${BOOTSTRAP_SNAPSHOT}" + curl -f -s -L "https://distfiles.prefix.bitzolder.nl/prefix/distfiles/${BOOTSTRAP_SNAPSHOT}" > "${BOOTSTRAP_SNAPSHOT}" fi rm -Rf "${TMPDIR}" -- cgit v1.2.3-65-gdbad