diff options
author | vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2018-05-17 17:51:42 +0530 |
---|---|---|
committer | vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2018-05-17 17:53:51 +0530 |
commit | a6c3be3c9f19bfe242a99276a58e56d07e78e798 (patch) | |
tree | 0ffba51b6be9c1de226b30b1b30bf1ed2a17cc45 /lib/chef/provider | |
parent | 985488397c1b8d4c1cab0a6a6613f17665311211 (diff) | |
download | chef-a6c3be3c9f19bfe242a99276a58e56d07e78e798.tar.gz |
[MSYS-817] fix for windows_task does not parse backslashes in the command property
Signed-off-by: vasu1105 <vasundhara.jagdale@msystechnologies.com>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/windows_task.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb index c9109d6996..0bb28c66c6 100644 --- a/lib/chef/provider/windows_task.rb +++ b/lib/chef/provider/windows_task.rb @@ -231,6 +231,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) new_resource.command = cmd new_resource.command_arguments = args.join(" ") |