From 82ce26d8eb474a47d88aa946f4987bc4451b79ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 17 Aug 2021 22:35:12 +0200 Subject: [PATCH] don't avoid running installer on self-hosted runners The same check already runs on line 4 --- lib/install-nix.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/install-nix.sh b/lib/install-nix.sh index 61c4fe3..c424b02 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -33,11 +33,7 @@ if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then fi echo "installer options: ${installer_options[@]}" -# On self-hosted runners we don't need to install more than once -if [[ ! -d /nix/store ]] -then - sh <(curl --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}") "${installer_options[@]}" -fi +sh <(curl --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}") "${installer_options[@]}" if [[ $OSTYPE =~ darwin ]]; then # Disable spotlight indexing of /nix to speed up performance