summaryrefslogtreecommitdiff
path: root/lib/chef/config.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-10-17 07:48:53 -0700
committerdanielsdeleo <dan@opscode.com>2013-10-17 14:03:53 -0700
commitd3574a1e3e15bf8facb8efa6d44d2d287731d1ea (patch)
tree48773b3ed16aa36a44612512db416366465a197c /lib/chef/config.rb
parentf732bbb1e264b6ccc4fc2c1e9b99a8b9838d2199 (diff)
downloadchef-d3574a1e3e15bf8facb8efa6d44d2d287731d1ea.tar.gz
Fix String element reference for ruby 1.8
Diffstat (limited to 'lib/chef/config.rb')
-rw-r--r--lib/chef/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index 87a747f3cc..70cf3834b6 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -74,7 +74,7 @@ class Chef
def self.path_join(*args)
args = args.flatten
args.inject do |joined_path, component|
- unless joined_path[-1] == platform_path_separator
+ unless joined_path[-1,1] == platform_path_separator
joined_path += platform_path_separator
end
joined_path += component