Skip to content

Commit a590bb1

Browse files
authored
Merge pull request #150 from daiseeai/master
Don't add daemon option if no-daemon is supplied
2 parents 11f4ad1 + d0ac661 commit a590bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-nix.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ installer_options=(
3737
)
3838

3939
# only use the nix-daemon settings if on darwin (which get ignored) or systemd is supported
40-
if [[ $OSTYPE =~ darwin || -e /run/systemd/system ]]; then
40+
if [[ (! $INPUT_INSTALL_OPTIONS =~ "--no-daemon") && ($OSTYPE =~ darwin || -e /run/systemd/system) ]]; then
4141
installer_options+=(
4242
--daemon
4343
--daemon-user-count "$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)')"

0 commit comments

Comments
 (0)