mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
chore(installer): capitalize the default option when reading user input
This commit is contained in:
parent
426d38710b
commit
5c22b241f7
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ stdenv.mkDerivation {
|
|||
# Skip when stdin is not a tty, eg.
|
||||
# $ yes | darwin-installer
|
||||
if test -t 0; then
|
||||
read -p "Would you like to edit the default configuration.nix before starting? [y/n] " i
|
||||
read -p "Would you like to edit the default configuration.nix before starting? [y/N] " i
|
||||
case "$i" in
|
||||
y|Y)
|
||||
PATH=$_PATH ''${EDITOR:-nano} "$config"
|
||||
|
@ -75,7 +75,7 @@ stdenv.mkDerivation {
|
|||
darwinPath=$(NIX_PATH=$HOME/.nix-defexpr/channels nix-instantiate --eval -E '<darwin>' 2> /dev/null) || true
|
||||
if ! test -e "$darwinPath"; then
|
||||
if test -t 0; then
|
||||
read -p "Would you like to manage <darwin> with nix-channel? [y/n] " i
|
||||
read -p "Would you like to manage <darwin> with nix-channel? [Y/n] " i
|
||||
fi
|
||||
case "$i" in
|
||||
y|Y)
|
||||
|
|
Loading…
Reference in a new issue