mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Merge pull request #879 from betrusted-io/release-fixups
fixup error messages
This commit is contained in:
commit
bcfdca4048
1 changed files with 1 additions and 5 deletions
|
|
@ -123,14 +123,10 @@ function Copy-ToSSH {
|
||||||
[string]$LocalPath,
|
[string]$LocalPath,
|
||||||
[string]$RemoteTarget
|
[string]$RemoteTarget
|
||||||
)
|
)
|
||||||
|
|
||||||
if (Test-Path $LocalPath) {
|
if (Test-Path $LocalPath) {
|
||||||
try {
|
try {
|
||||||
# Using scp for file transfer
|
|
||||||
$scpCommand = "scp `"$LocalPath`" `"$RemoteTarget`""
|
|
||||||
Write-Status " Copying: $LocalPath -> $RemoteTarget"
|
Write-Status " Copying: $LocalPath -> $RemoteTarget"
|
||||||
|
$result = & scp $LocalPath $RemoteTarget 2>&1
|
||||||
$result = Invoke-Expression $scpCommand 2>&1
|
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
Write-Success " Successfully copied: $(Split-Path $LocalPath -Leaf)"
|
Write-Success " Successfully copied: $(Split-Path $LocalPath -Leaf)"
|
||||||
return $true
|
return $true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue