From eebad7cd9b2e1fbac9699d1ce4532977cc16d622 Mon Sep 17 00:00:00 2001 From: Luiz Gonzaga dos Santos Filho Date: Tue, 6 Jun 2017 17:00:06 +0200 Subject: [PATCH] [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. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 3c1d29d0..a5b2586f 100644 --- a/Rakefile +++ b/Rakefile @@ -274,7 +274,7 @@ def install_prezto run %{ mkdir -p $HOME/.zsh.after } 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" else puts "Setting zsh as your default shell"