From 7fc31826e1813c4bcec220278c9ec374ec273f5f Mon Sep 17 00:00:00 2001 From: thekondr Date: Sun, 22 Mar 2015 20:22:56 +0500 Subject: [PATCH] Fix chsh prompt for pipes When oh-my-zsh is installed via pipes like `curl -L http://.../install.sh | sh` authorization of `chsh` fails because it can't get password from its input. This change forces `chsh` to take input from tty. --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index bd4c55749..49e51722f 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -34,7 +34,7 @@ export PATH=\"$PATH\" if [ "$SHELL" != "$(which zsh)" ]; then echo "\033[0;34mTime to change your default shell to zsh!\033[0m" - chsh -s `which zsh` + chsh -s `which zsh` < /dev/tty fi echo "\033[0;32m"' __ __ '"\033[0m"