Skip to content

Commit

Permalink
Merge pull request #26 from mhoran/patch-1
Browse files Browse the repository at this point in the history
Don't call libexec commands directly
  • Loading branch information
fnichol committed Dec 13, 2012
2 parents 46dccd8 + c921ab6 commit 7d9b66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chef_rbenv_recipe_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def initialize_rbenv(opts)
end

bash "Initialize rbenv (#{opts[:user] || 'system'})" do
code %{PATH="#{prefix}/bin:$PATH" #{prefix}/libexec/rbenv-init -}
code %{PATH="#{prefix}/bin:$PATH" rbenv init -}
environment({'RBENV_ROOT' => prefix}.merge(init_env))
user opts[:user] if opts[:user]
group opts[:group] if opts[:group]
Expand Down

0 comments on commit 7d9b66f

Please sign in to comment.