From 1629effd5179842545e81ffb962dea549cb821bd Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Wed, 26 Jun 2024 23:13:13 -0500 Subject: [PATCH] Tell cURL to follow redirects --- nix/cache.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/cache.nix b/nix/cache.nix index a7f659a..2305640 100644 --- a/nix/cache.nix +++ b/nix/cache.nix @@ -28,7 +28,7 @@ in writeShellApplication { sha=$(echo var.iso.checksum | packer console -var-file="${distroFile d}" -config-type=hcl2 sources/) # shellcheck disable=SC2143 if [ -z "$(mc ls storage/isos/cache/ | grep "$sha")" ]; then - curl --retry 3 --retry-all-errors -o "cache/$sha.iso" "$url" + curl -L --retry 3 --retry-all-errors -o "cache/$sha.iso" "$url" mc put "cache/$sha.iso" "storage/isos/cache/$sha.iso" else echo "Skipping ${d.distro} - cache/$sha.iso"