Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
viavr-editor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIA-VR
viavr-editor
Commits
5cefc638
Commit
5cefc638
authored
1 month ago
by
Samuel Truman
Browse files
Options
Downloads
Patches
Plain Diff
Simplified download logging
parent
38840681
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
res/checkInstallAll.ps1
+4
-4
4 additions, 4 deletions
res/checkInstallAll.ps1
with
4 additions
and
4 deletions
res/checkInstallAll.ps1
+
4
−
4
View file @
5cefc638
...
...
@@ -85,13 +85,13 @@ function Download-File {
[
string
]
$destination
)
Write-Host
"
Attemp
ting
to
download
from:
$url
"
Write-Host
"
Star
ting download
...
"
# Try using BitsTransfer
try
{
Write-Log
"Using BitsTransfer..."
Start-BitsTransfer
-Source
$url
-Destination
$destination
Write-Host
"Download completed
using BitsTransfer
."
-ForegroundColor
Green
Write-Host
"Download completed."
-ForegroundColor
Green
return
}
catch
{
Write-Log
"BitsTransfer failed:
$_
"
-ForegroundColor
Red
...
...
@@ -102,7 +102,7 @@ function Download-File {
Write-Log
"Using WebClient..."
$webClient
=
New-Object
System.Net.WebClient
$webClient
.
DownloadFile
(
$url
,
$destination
)
Write-Host
"Download completed
using WebClient
."
-ForegroundColor
Green
Write-Host
"Download completed."
-ForegroundColor
Green
return
}
catch
{
Write-Host
"WebClient failed:
$_
"
-ForegroundColor
Red
...
...
@@ -112,7 +112,7 @@ function Download-File {
try
{
Write-Log
"Using Invoke-WebRequest..."
Invoke-WebRequest
-Uri
$url
-OutFile
$destination
Write-Host
"Download completed
using Invoke-WebRequest
."
-ForegroundColor
Green
Write-Host
"Download completed."
-ForegroundColor
Green
return
}
catch
{
Write-Host
"Invoke-WebRequest failed:
$_
"
-ForegroundColor
Red
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment