mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-22 00:20:53 +00:00
don't avoid running installer on self-hosted runners
The same check already runs on line 4
This commit is contained in:
parent
439f71762b
commit
82ce26d8eb
1 changed files with 1 additions and 5 deletions
|
@ -33,11 +33,7 @@ if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "installer options: ${installer_options[@]}"
|
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[@]}"
|
sh <(curl --retry 5 --retry-connrefused -L "${INPUT_INSTALL_URL:-https://nixos.org/nix/install}") "${installer_options[@]}"
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $OSTYPE =~ darwin ]]; then
|
if [[ $OSTYPE =~ darwin ]]; then
|
||||||
# Disable spotlight indexing of /nix to speed up performance
|
# Disable spotlight indexing of /nix to speed up performance
|
||||||
|
|
Loading…
Reference in a new issue