Skip to content

Commit

Permalink
scripts/rsync-generation/mksnapshot: don't download a crap 404 message
Browse files Browse the repository at this point in the history
Fail instead of downloading a 404/403/500 whatever message.

Bug: https://bugs.gentoo.org/934308
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
  • Loading branch information
grobian committed Jun 14, 2024
1 parent aa2a055 commit 990de73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rsync-generation/mksnapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 990de73

Please sign in to comment.