Differences
This shows you the differences between the selected revisions of the page.
| 2017-07-23 | 2017-10-03 | ||
| two accelerators in one caption (martin) | using variable expansion in strings in powershell (martin) | ||
| Line 93: | Line 93: | ||
| if ($continueOnError) | if ($continueOnError) | ||
| { | { | ||
| - | Write-Host ("Error: {0}" -f $result.Failures[0].Message) | + | Write-Host "Error: $($result.Failures[0].Message)" |
| $changed = $True | $changed = $True | ||
| } | } | ||
| Line 105: | Line 105: | ||
| foreach ($download in $result.Downloads) | foreach ($download in $result.Downloads) | ||
| { | { | ||
| - | Write-Host ("{0} <= {1}" -f $download.Destination, $download.FileName) | + | Write-Host "$($download.Destination) <= $($download.FileName)" |
| $changed = $True | $changed = $True | ||
| } | } | ||
| Line 126: | Line 126: | ||
| foreach ($removedFile in $removedFiles) | foreach ($removedFile in $removedFiles) | ||
| { | { | ||
| - | Write-Host ("{0} deleted" -f $removedFile) | + | Write-Host "$removedFile deleted" |
| $changed = $True | $changed = $True | ||
| } | } | ||
| Line 167: | Line 167: | ||
| catch [Exception] | catch [Exception] | ||
| { | { | ||
| - | Write-Host ("Error: {0}" -f $_.Exception.Message) | + | Write-Host "Error: $($_.Exception.Message)" |
| } | } | ||