Commit 61c236be by Chris Church Committed by Matt Martz

Fix for creating temp dir with older powershell versions.

parent 7631c005
...@@ -81,7 +81,7 @@ class ShellModule(object): ...@@ -81,7 +81,7 @@ class ShellModule(object):
def mkdtemp(self, basefile, system=False, mode=None): def mkdtemp(self, basefile, system=False, mode=None):
basefile = _escape(basefile) basefile = _escape(basefile)
# FIXME: Support system temp path! # FIXME: Support system temp path!
return _encode_script('''(New-Item -Type Directory -Path $env:temp -Name "%s").FullName;''' % basefile) return _encode_script('''(New-Item -Type Directory -Path $env:temp -Name "%s").FullName | Write-Host -Separator '';''' % basefile)
def md5(self, path): def md5(self, path):
path = _escape(path) path = _escape(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment