diff --git a/scripts/deploy_tower.ps1 b/scripts/deploy_tower.ps1 index 0d496062..d3c6a565 100644 --- a/scripts/deploy_tower.ps1 +++ b/scripts/deploy_tower.ps1 @@ -44,7 +44,8 @@ $localScriptPath = [System.IO.Path]::GetTempFileName() $remoteScriptPath = "/tmp/geointel-deploy-$([System.Guid]::NewGuid().ToString('N')).sh" try { - [System.IO.File]::WriteAllText($localScriptPath, $remoteScript, $utf8NoBom) + $remoteScriptLf = $remoteScript -replace "`r`n", "`n" + [System.IO.File]::WriteAllText($localScriptPath, $remoteScriptLf, $utf8NoBom) $scpArgs = @( "-o", "BatchMode=yes",