From c417983266597e096cb5694c217e4f81c789abda Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 18 Apr 2019 09:53:22 +0200 Subject: [PATCH] Update --- tforgione.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tforgione.sh b/tforgione.sh index aa9439a..777e116 100755 --- a/tforgione.sh +++ b/tforgione.sh @@ -144,7 +144,7 @@ configure_zsh() { if [ $sudo_available -eq 0 ]; then # Sudo is available, run chsh - yes_no_ask "do you want to change your shell ? (you'll need root) ?" + yes_no_ask "do you want to change your shell ?" if [ $? -eq 0 ]; then info "changing your shell" sudo chsh $user -s /bin/zsh @@ -167,11 +167,13 @@ configure_zsh() { main() { echo_green "=== WELCOME TO TFORGIONE'S CONFIG INSTALLER ===" + + info "before anything, i need to know if your user can use sudo" + yes_no_ask "can your user use sudo ?" + sudo_available=$? + configure_zsh } -sudo -n -l true 2>&1 -sudo_available=$? - main < /dev/tty