mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fixup error messages
This commit is contained in:
parent
302ef46ea0
commit
635bead758
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue