Skip to content
Browse files

Fixed 'zsh' current shell check.

  • Loading branch information...
1 parent e8fab85 commit 287b8134b13420ed1bf249cee60d42a348fc54d7 @benhoskings benhoskings committed Nov 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 shells.rb
View
2 shells.rb
@@ -16,7 +16,7 @@
dep 'zsh' do
requires 'zsh.shell_setup'
- met? { shell('echo $SHELL') == which('zsh') }
+ met? { sudo('echo \$SHELL', :as => var(:username), :su => true) == which('zsh') }
meet { sudo("chsh -s '#{which('zsh')}' #{var(:username)}") }
end

0 comments on commit 287b813

Please sign in to comment.
Something went wrong with that request. Please try again.