trying some more encoding as the file wasnt exactly the same - issue #742

This commit is contained in:
Bernardo Damele 2014-06-30 20:26:05 +01:00
parent 3ec37b14a6
commit ce67156d80

View File

@ -180,7 +180,6 @@ class Filesystem(GenericFilesystem):
#psString = """$Content = Get-Content -Path %s -Encoding Byte
#$Base64 = [System.Convert]::ToBase64String($Content)
psString = """
$Base64 = [System.Convert]::ToBase64String($Content)
$Content = [System.Convert]::FromBase64String("%s")
Set-Content -Path %s -Value $Content -Encoding Byte
""" % (encodedFileContent, randPSScriptPath)