[Install] Prevent empty SHELL failing installation

This commit is contained in:
hophacker 2019-04-10 18:36:21 +08:00
parent e783b0a774
commit a274273caa

View File

@ -302,7 +302,7 @@ def install_prezto
run %{ mkdir -p $HOME/.zsh.after } run %{ mkdir -p $HOME/.zsh.after }
run %{ mkdir -p $HOME/.zsh.prompts } run %{ mkdir -p $HOME/.zsh.prompts }
if ENV["SHELL"].include? 'zsh' then if "#{ENV['SHELL']}".include? 'zsh' then
puts "Zsh is already configured as your shell of choice. Restart your session to load the new settings" puts "Zsh is already configured as your shell of choice. Restart your session to load the new settings"
else else
puts "Setting zsh as your default shell" puts "Setting zsh as your default shell"