Merge pull request #879 from betrusted-io/release-fixups

fixup error messages
This commit is contained in:
bunnie 2026-05-14 02:18:23 +08:00 committed by GitHub
commit bcfdca4048
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,14 +123,10 @@ function Copy-ToSSH {
[string]$LocalPath,
[string]$RemoteTarget
)
if (Test-Path $LocalPath) {
try {
# Using scp for file transfer
$scpCommand = "scp `"$LocalPath`" `"$RemoteTarget`""
Write-Status " Copying: $LocalPath -> $RemoteTarget"
$result = Invoke-Expression $scpCommand 2>&1
$result = & scp $LocalPath $RemoteTarget 2>&1
if ($LASTEXITCODE -eq 0) {
Write-Success " Successfully copied: $(Split-Path $LocalPath -Leaf)"
return $true