lib/itamae/plugin/recipe/rbenv/install.rb in itamae-plugin-recipe-rbenv-0.6.10 vs lib/itamae/plugin/recipe/rbenv/install.rb in itamae-plugin-recipe-rbenv-0.7.0
- old
+ new
@@ -83,10 +83,10 @@
if node[:rbenv][:global]
node[:rbenv][:global].tap do |version|
execute "rbenv global #{version}" do
command "#{rbenv_init} rbenv global #{version}"
- not_if "#{rbenv_init} rbenv version --bare | grep -x #{version}"
+ not_if "#{rbenv_init} rbenv global | grep -x #{version}"
user node[:rbenv][:user] if node[:rbenv][:user]
end
end
end