Fix $SHELL check before setting shell

This commit is contained in:
Henrik Lissner 2014-09-08 12:10:36 -04:00
parent 319886a11a
commit 2e053c7107

View file

@ -14,7 +14,7 @@ namespace :zsh do
end end
sh_safe '~/.dotfiles/install.sh' sh_safe '~/.dotfiles/install.sh'
if `printenv SHELL | grep "/zsh$"` unless `printenv SHELL | grep "/zsh$"`
echo "Setting shell to ZSH", 2 echo "Setting shell to ZSH", 2
zsh_bin = is_mac? ? "/usr/local/bin/zsh" : "/usr/bin/zsh" zsh_bin = is_mac? ? "/usr/local/bin/zsh" : "/usr/bin/zsh"
if !File.exists? zsh_bin if !File.exists? zsh_bin