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.
1 parent fe464fe commit 783053eCopy full SHA for 783053e
lib/install-nix.sh
@@ -45,7 +45,15 @@ if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then
45
fi
46
47
echo "installer options: ${installer_options[@]}"
48
-sh <(curl --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}") "${installer_options[@]}"
+
49
+# There is --retry-on-errors, but only newer curl versions support that
50
+until curl -o /tmp/install -v --fail --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}"
51
+do
52
+ sleep 1
53
+done
54
55
+chmod +x /tmp/install
56
+sh /tmp/install "${installer_options[@]}"
57
58
if [[ $OSTYPE =~ darwin ]]; then
59
# macOS needs certificates hints
0 commit comments