diff options
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/windows_task.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb index 4fb4817020..b1c59ec41c 100644 --- a/lib/chef/provider/windows_task.rb +++ b/lib/chef/provider/windows_task.rb @@ -21,6 +21,7 @@ require "rexml/document" require "iso8601" require "chef/mixin/powershell_out" require "chef/provider" +require "chef/util/path_helper" require "win32/taskscheduler" if Chef::Platform.windows? class Chef @@ -229,8 +230,7 @@ class Chef # seprated command arguments from :command property def set_command_and_arguments - new_resource.command = new_resource.command.gsub(/\\/, '\&\&') - cmd, *args = Shellwords.split(new_resource.command) + cmd, *args = Chef::Util::PathHelper.split_args(new_resource.command) new_resource.command = cmd new_resource.command_arguments = args.join(" ") end |