We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b93cdea + 783053e commit 489b4a2Copy full SHA for 489b4a2
lib/install-nix.sh
@@ -47,7 +47,15 @@ if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then
47
fi
48
49
echo "installer options: ${installer_options[@]}"
50
-sh <(curl --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}") "${installer_options[@]}"
+
51
+# There is --retry-on-errors, but only newer curl versions support that
52
+until curl -o /tmp/install -v --fail --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}"
53
+do
54
+ sleep 1
55
+done
56
57
+chmod +x /tmp/install
58
+sh /tmp/install "${installer_options[@]}"
59
60
if [[ $OSTYPE =~ darwin ]]; then
61
# macOS needs certificates hints
0 commit comments