1
0
Fork 0
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:
Gabriella Gonzalez 2022-10-25 16:43:00 -07:00
parent 899878f77a
commit a71e3172af
2 changed files with 6 additions and 2 deletions

View file

@ -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'