nixos-install: Fix chroot flag not defaulting to Bash outside NixOS.
Passing the chroot flag to nixos-install without arguments should now give you a Bash shell as intended rather than try an empty path. This was masked by the user's shell (usually /bin/bash) being defaulted to by chroot, and being found since their paths used NixOS conventions.
This commit is contained in:
parent
7b37a5f168
commit
71910be9ea
@ -45,7 +45,9 @@ while [ "$#" -gt 0 ]; do
|
|||||||
;;
|
;;
|
||||||
--chroot)
|
--chroot)
|
||||||
runChroot=1
|
runChroot=1
|
||||||
|
if [[ "$@" != "" ]]; then
|
||||||
chrootCommand=("$@")
|
chrootCommand=("$@")
|
||||||
|
fi
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
--help)
|
--help)
|
||||||
|
Loading…
Reference in New Issue
Block a user