fix: normalize Tower deploy script for bash
This commit is contained in:
@@ -44,7 +44,8 @@ $localScriptPath = [System.IO.Path]::GetTempFileName()
|
|||||||
$remoteScriptPath = "/tmp/geointel-deploy-$([System.Guid]::NewGuid().ToString('N')).sh"
|
$remoteScriptPath = "/tmp/geointel-deploy-$([System.Guid]::NewGuid().ToString('N')).sh"
|
||||||
|
|
||||||
try {
|
try {
|
||||||
[System.IO.File]::WriteAllText($localScriptPath, $remoteScript, $utf8NoBom)
|
$remoteScriptLf = $remoteScript -replace "`r`n", "`n"
|
||||||
|
[System.IO.File]::WriteAllText($localScriptPath, $remoteScriptLf, $utf8NoBom)
|
||||||
|
|
||||||
$scpArgs = @(
|
$scpArgs = @(
|
||||||
"-o", "BatchMode=yes",
|
"-o", "BatchMode=yes",
|
||||||
|
|||||||
Reference in New Issue
Block a user