[Install] Prevent empty SHELL failing installation

When running yadr via docker, $SHELL starts out empty/null, so that was
triggering a fatal method not found error during installation.
This commit is contained in:
Luiz Gonzaga dos Santos Filho
2017-06-06 17:00:06 +02:00
parent b889e38b1a
commit eebad7cd9b

View File

@@ -274,7 +274,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"