Skip to content

Commit 82ce26d

Browse files
authored
don't avoid running installer on self-hosted runners
The same check already runs on line 4
1 parent 439f717 commit 82ce26d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/install-nix.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then
3333
fi
3434

3535
echo "installer options: ${installer_options[@]}"
36-
# On self-hosted runners we don't need to install more than once
37-
if [[ ! -d /nix/store ]]
38-
then
39-
sh <(curl --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}") "${installer_options[@]}"
40-
fi
36+
sh <(curl --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}") "${installer_options[@]}"
4137

4238
if [[ $OSTYPE =~ darwin ]]; then
4339
# Disable spotlight indexing of /nix to speed up performance

0 commit comments

Comments
 (0)