Make prompts more consistent

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:55 -04:00
parent 284dbad37b
commit cdb8819bc5
1 changed files with 2 additions and 2 deletions

View File

@ -461,14 +461,14 @@ echo "done."
set +o errexit set +o errexit
echo echo
echo "Edit the /etc/network/interfaces file in the target before completing setup? [y/N]" echo -n "Edit the /etc/network/interfaces file in the target before completing setup? [y/N] "
read edit_ifaces read edit_ifaces
if [[ ${edit_ifaces} == 'y' || ${edit_ifaces} == 'Y' ]]; then if [[ ${edit_ifaces} == 'y' || ${edit_ifaces} == 'Y' ]]; then
vim ${target}/etc/network/interfaces vim ${target}/etc/network/interfaces
fi fi
echo echo
echo "Launch a chroot shell in the target environment? [y/N]" echo -n "Launch a chroot shell in the target environment? [y/N] "
read launch_chroot read launch_chroot
if [[ ${launch_chroot} == 'y' || ${edit_ifaces} == 'Y' ]]; then if [[ ${launch_chroot} == 'y' || ${edit_ifaces} == 'Y' ]]; then
echo "Type 'exit' or Ctrl+D to exit chroot." echo "Type 'exit' or Ctrl+D to exit chroot."