From d7b34edfdec78aa1c471d342013c5f91ea8f7a9b Mon Sep 17 00:00:00 2001 From: Bill Ruddock Date: Thu, 7 Apr 2016 17:45:20 +0100 Subject: [PATCH] Remove superfluous rbenv init `eval $(rbenv init -)` is only intended for interactive shell use. The non-interactive parts are not needed here. 1. setting PATH and RBENV_SHELL (which is already set in environment) 2. Run rehash (already run in install_package) --- providers/execute.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/providers/execute.rb b/providers/execute.rb index 5d05cc7..968e8aa 100644 --- a/providers/execute.rb +++ b/providers/execute.rb @@ -18,10 +18,6 @@ def load_current_resource end action :run do - execute "eval \"$(rbenv init -)\"" do - environment new_resource.environment - end - execute new_resource.name do command new_resource.command creates new_resource.creates