summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-10 14:59:54 -0700
committerGitHub <noreply@github.com>2020-04-10 14:59:54 -0700
commite009583afea176de8a9619aca17cd162b01db4ea (patch)
treea6a1b8b2d3517260292c7bba09c09f74781678d4
parent11920187e9471d3136484dacfc62bb84bc05705a (diff)
downloadchef-e009583afea176de8a9619aca17cd162b01db4ea.tar.gz
Update lib/chef/resource/plist.rb
Signed-off-by: Tim Smith <tsmith@chef.io> Co-Authored-By: pete higgins <pete@peterhiggins.org>
-rw-r--r--lib/chef/resource/plist.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/plist.rb b/lib/chef/resource/plist.rb
index 8f0e0229b8..d5d2ce3c6c 100644
--- a/lib/chef/resource/plist.rb
+++ b/lib/chef/resource/plist.rb
@@ -74,7 +74,7 @@ class Chef
end
end
- plist_file_name = new_resource.path.split("/").last
+ plist_file_name = ::File.basename(new_resource.path)
converge_if_changed :entry do
converge_by "add entry \"#{new_resource.entry}\" to #{plist_file_name}" do