Improve chsh failure mode message

This commit is contained in:
Joel Kuzmarski 2016-08-20 03:04:27 -05:00
parent 21c64ee0c9
commit 7b6d36754c

View File

@ -152,6 +152,8 @@ main() {
printf "${RED}Wrong password.${NORMAL} ${GREEN}Press CTRL-C to cancel.${NORMAL}\n"
;;
*)
printf "${RED}There was a problem changing the default login shell!${NORMAL}\n"
printf "${RED}${CHSH_ZSH_STDERR}${NORMAL}\n"
# Probably best to fall back to the environment zsh if it exists.
if [ -n "$ENV_ZSH" ]; then
unset CHSH_ZSH