mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Add --yes
option for Nix installation script
This commit is contained in:
parent
899878f77a
commit
a71e3172af
2 changed files with 6 additions and 2 deletions
|
@ -58,7 +58,7 @@ readonly EXTRACTED_NIX_PATH="$(dirname "$0")"
|
|||
|
||||
readonly ROOT_HOME=~root
|
||||
|
||||
if [ -t 0 ]; then
|
||||
if [ -t 0 ] && [ -z "${NIX_INSTALLER_YES:-}" ]; then
|
||||
readonly IS_HEADLESS='no'
|
||||
else
|
||||
readonly IS_HEADLESS='yes'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue