File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -620,21 +620,20 @@ function DownloadFile($Source, [string]$OutPath) {
620620}
621621
622622function SafeRemoveFile ($Path ) {
623- try {
624- if (Test-Path $Path )
625- {
626- Remove-Item $Path
627- Say- Verbose " The temporary file `" $Path `" was removed."
628- }
629- else
630- {
631- Say- Verbose " The temporary file `" $Path `" does not exist, therefore is not removed."
632- }
633- }
634- catch
635- {
636- Say " Failed to remove the temporary file: `" $Path `" , remove it manually."
637- }
623+ try {
624+ if (Test-Path $Path ) {
625+ Remove-Item $Path
626+ Say- Verbose " The temporary file `" $Path `" was removed."
627+ }
628+ else
629+ {
630+ Say- Verbose " The temporary file `" $Path `" does not exist, therefore is not removed."
631+ }
632+ }
633+ catch
634+ {
635+ Say " Failed to remove the temporary file: `" $Path `" , remove it manually."
636+ }
638637}
639638
640639function Prepend-Sdk-InstallRoot-To-Path ([string ]$InstallRoot , [string ]$BinFolderRelativePath ) {
@@ -747,7 +746,7 @@ try {
747746}
748747catch {
749748 Say " Cannot download: $DownloadLink "
750- SafeRemoveFile - Path $ZipPath
749+ SafeRemoveFile - Path $ZipPath
751750
752751 if ($LegacyDownloadLink ) {
753752 $DownloadLink = $LegacyDownloadLink
@@ -759,7 +758,7 @@ catch {
759758 }
760759 catch {
761760 Say " Cannot download: $DownloadLink "
762- SafeRemoveFile - Path $ZipPath
761+ SafeRemoveFile - Path $ZipPath
763762 $DownloadFailed = $true
764763 }
765764 }
You can’t perform that action at this time.
0 commit comments