Skip to content

Commit

Permalink
relax find glob for finding installed gems
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Fuchs committed Jul 7, 2011
1 parent 34706d7 commit 442f828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vagrant_base/rvm/recipes/multi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
user rvm_user
environment Hash['HOME' => "/home/vagrant", 'rvm_user_install_flag' => '1']
code "#{rvm_command} && rvm use #{ruby} && gem install #{gem} --no-ri --no-rdoc"
not_if "find ~/.rvm/gems/#{ruby}/gems -name '#{gem}-[0-9].[0-9].[0-9]'"
not_if "find ~/.rvm/gems/*#{ruby}/gems -name '#{gem}-[0-9]*.[0-9]*.[0-9]*'"
end
end
end
Expand All @@ -59,7 +59,7 @@
bash "install chef for the default Ruby" do
user rvm_user
code "#{rvm_command} use #{default_ruby} && gem install chef --no-ri --no-rdoc"
not_if "find ~/.rvm/gems/#{default_ruby}/gems -name 'chef-[0-9].[0-9].[0-9]'"
not_if "find ~/.rvm/gems/*#{default_ruby}/gems -name 'chef-[0-9]*.[0-9]*.[0-9]*'"
end

node[:rvm][:aliases].each do |existing_name, new_name|
Expand Down

0 comments on commit 442f828

Please sign in to comment.