make powershell scripts consistent

This commit is contained in:
David Refoua
2022-11-06 11:32:22 +03:30
parent fbe3e17eea
commit fc44def0ad
5 changed files with 24 additions and 24 deletions

View File

@ -226,12 +226,12 @@ function Download-File {
$useBitTransfer = $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and ($PSVersionTable.PSVersion.Major -le 5)
$File = $File -Replace "/", "\"
$File = $File -replace "/", "\"
try {
if ($useBitTransfer) {
Start-BitsTransfer -Source $Url -Destination $File -DisplayName "Downloading $Url to $File"
Return
Start-BitsTransfer -Source $Url -Destination $File -DisplayName "Downloading '$Url' to $File"
return
}
}
catch {