1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #14930 from mholiv/enable_dollar_as_first_char_in_folder_and_userName

Modified files to use single quotes rather than double for file path.…
This commit is contained in:
Matt Davis 2016-03-25 07:14:42 +00:00
commit afc82f6beb
2 changed files with 2 additions and 2 deletions

View file

@ -270,7 +270,7 @@ class Connection(ConnectionBase):
script_template = u'''
begin {{
$path = "{0}"
$path = '{0}'
$DebugPreference = "Continue"
$ErrorActionPreference = "Stop"

View file

@ -52,7 +52,7 @@ class ShellModule(object):
path = '\\'.join(parts)
if path.startswith('~'):
return path
return '"%s"' % path
return '\'%s\'' % path
# powershell requires that script files end with .ps1
def get_remote_filename(self, base_name):