logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/make-initrd.git
commit: 2f86355a71468c07a47a4ede96d6597edf7337b3
parent aeee236fdef52f7c3f65a71c7f71f891bd7abcb0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  2 May 2024 10:05:35 +0200

fetch.sh: Add --fail-with-body to curl options

Diffstat:

Mfetch.sh14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/fetch.sh b/fetch.sh @@ -19,32 +19,34 @@ set -ex mkdir -p "${WORKDIR}/distfiles" cd "${WORKDIR}/distfiles" +CURL_OPTS="-L --fail-with-body" + for url in $URLS do file="$(basename "$url")" - test -e "$file" || curl -L -o "$file" "$url" + test -e "$file" || curl ${CURL_OPTS} -o "$file" "$url" done for arch in ${ALPINE_ARCH:-$ALPINE_ARCHES} do for apk in $APKS_main do - test -e "$apk.$arch" || curl -L -o "$apk.${arch}" "${ALPINE_MIRROR}/${ALPINE_BRANCH}/main/${arch}/${apk}" + test -e "$apk.$arch" || curl ${CURL_OPTS} -o "$apk.${arch}" "${ALPINE_MIRROR}/${ALPINE_BRANCH}/main/${arch}/${apk}" done for apk in $APKS_testing do - test -e "$apk.$arch" || curl -L -o "$apk.${arch}" "${ALPINE_MIRROR}/${ALPINE_BRANCH}/testing/${arch}/${apk}" + test -e "$apk.$arch" || curl ${CURL_OPTS} -o "$apk.${arch}" "${ALPINE_MIRROR}/${ALPINE_BRANCH}/testing/${arch}/${apk}" done done # Only has ./CVS and .travis-ci.yml removed compared to Github autogenerated tarball -test -e om4-6.7.tar.gz || curl -L -o om4-6.7.tar.gz https://github.com/ibara/m4/releases/download/om4-6.7/om4-6.7.tar.gz +test -e om4-6.7.tar.gz || curl ${CURL_OPTS} -o om4-6.7.tar.gz https://github.com/ibara/m4/releases/download/om4-6.7/om4-6.7.tar.gz -test -e nawk-20240422.tar.gz || curl -L -o nawk-20240422.tar.gz https://github.com/onetrueawk/awk/archive/20240422.tar.gz +test -e nawk-20240422.tar.gz || curl ${CURL_OPTS} -o nawk-20240422.tar.gz https://github.com/onetrueawk/awk/archive/20240422.tar.gz # TODO: Sanity check between provided tarball and github-generated tarball -test -e loksh-7.3.tar.xz || curl -L -o loksh-7.3.tar.xz https://github.com/dimkr/loksh/releases/download/7.3/loksh-7.3.tar.xz +test -e loksh-7.3.tar.xz || curl ${CURL_OPTS} -o loksh-7.3.tar.xz https://github.com/dimkr/loksh/releases/download/7.3/loksh-7.3.tar.xz cd -