summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Fleischman <jeremyfleischman@gmail.com>2015-06-29 22:46:14 -0700
committerJeremy Fleischman <jeremyfleischman@gmail.com>2015-06-29 22:46:14 -0700
commitd27a5f8257eed6383f33acd0ab2f07655a69da19 (patch)
tree159011b51652707c13cae7e2f4202b4d2326044b
parentb8f4066d59a7e90980856c4e963ed423252d1337 (diff)
downloadchef-d27a5f8257eed6383f33acd0ab2f07655a69da19.tar.gz
Handling case where windows users install to a non default location.
-rw-r--r--lib/chef/provider/package/rubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb
index 51057c466a..510095bf64 100644
--- a/lib/chef/provider/package/rubygems.rb
+++ b/lib/chef/provider/package/rubygems.rb
@@ -401,7 +401,7 @@ class Chef
end
def is_omnibus?
- if RbConfig::CONFIG['bindir'] =~ %r!/opt/(opscode|chef|chefdk)/embedded/bin!
+ if RbConfig::CONFIG['bindir'] =~ %r!/(opscode|chef|chefdk)/embedded/bin!
Chef::Log.debug("#{@new_resource} detected omnibus installation in #{RbConfig::CONFIG['bindir']}")
# Omnibus installs to a static path because of linking on unix, find it.
true