Differences
This shows you the differences between the selected revisions of the page.
| 2017-01-09 | 2017-10-03 | ||
| options explicit anchor (martin) | using variable expansion in strings in powershell (martin) | ||
| Line 56: | Line 56: | ||
| $session.Open($sessionOptions) | $session.Open($sessionOptions) | ||
| - | Write-Host ("Downloading {0}..." -f $remotePath) | + | Write-Host "Downloading $remotePath..." |
| $session.GetFiles($remotePath, (Join-Path $localPath "*")).Check() | $session.GetFiles($remotePath, (Join-Path $localPath "*")).Check() | ||
| } | } | ||
| Line 70: | Line 70: | ||
| catch [Exception] | catch [Exception] | ||
| { | { | ||
| - | Write-Host ("Error: {0}" -f $_.Exception.Message) | + | Write-Host "Error: $($_.Exception.Message)" |
| $result = 1 | $result = 1 | ||
| } | } | ||