Skip to content

Commit

Permalink
Merge pull request #94 from xdissent/fix-rvm-reinstall
Browse files Browse the repository at this point in the history
Prevent rvm from reinstalling each chef run
  • Loading branch information
fnichol committed Apr 20, 2012
2 parents e09e30a + 374ae99 commit 93d32c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/chef_rvm_recipe_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def install_rvm(opts = {})
end

not_if rvm_wrap_cmd(
%{type rvm | cat | head -1 | grep -q '^rvm is a function$'}, user_dir)
%{type rvm | cat | head -1 | grep -q '^rvm is a function$'}, user_dir),
:environment => exec_env
end
i.run_action(:run) if install_now
end
Expand Down

0 comments on commit 93d32c6

Please sign in to comment.