This commit is contained in:
Sander 2025-09-21 17:14:17 +02:00
parent 581a134122
commit d487f94a7a
No known key found for this signature in database

View file

@ -103,8 +103,7 @@ echo "installer options: ${installer_options[*]}"
# There is --retry-on-errors, but only newer curl versions support that
curl_retries=5
nix_version=2.31.2
while ! curl -sS -o "$workdir/install" -v --fail -L "${INPUT_INSTALL_URL:-https://releases.nixos.org/nix/nix-${nix_version}/install}"
do
while ! curl -sS -o "$workdir/install" -v --fail -L "${INPUT_INSTALL_URL:-https://releases.nixos.org/nix/nix-${nix_version}/install}"; do
sleep 1
((curl_retries--))
if [[ $curl_retries -le 0 ]]; then