mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-15 21:08:21 +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.
|
# Skip when stdin is not a tty, eg.
|
||||||
# $ yes | darwin-installer
|
# $ yes | darwin-installer
|
||||||
if test -t 0; then
|
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
|
case "$i" in
|
||||||
y|Y)
|
y|Y)
|
||||||
PATH=$_PATH ''${EDITOR:-nano} "$config"
|
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
|
darwinPath=$(NIX_PATH=$HOME/.nix-defexpr/channels nix-instantiate --eval -E '<darwin>' 2> /dev/null) || true
|
||||||
if ! test -e "$darwinPath"; then
|
if ! test -e "$darwinPath"; then
|
||||||
if test -t 0; 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
|
fi
|
||||||
case "$i" in
|
case "$i" in
|
||||||
y|Y)
|
y|Y)
|
||||||
|
|
Loading…
Add table
Reference in a new issue