From 2e053c7107f3176f5ec03165c9b2006dfde9c69e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 8 Sep 2014 12:10:36 -0400 Subject: [PATCH] Fix $SHELL check before setting shell --- rake/pkg/zsh.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake/pkg/zsh.rake b/rake/pkg/zsh.rake index 73bd2107..c00826b2 100644 --- a/rake/pkg/zsh.rake +++ b/rake/pkg/zsh.rake @@ -14,7 +14,7 @@ namespace :zsh do end sh_safe '~/.dotfiles/install.sh' - if `printenv SHELL | grep "/zsh$"` + unless `printenv SHELL | grep "/zsh$"` echo "Setting shell to ZSH", 2 zsh_bin = is_mac? ? "/usr/local/bin/zsh" : "/usr/bin/zsh" if !File.exists? zsh_bin