Fix5
This commit is contained in:
@@ -8,14 +8,14 @@ function Import-ScriptsFromUrls {
|
||||
$fileName = Split-Path -Leaf $url
|
||||
$localFile = Join-Path -Path $LocalPath -ChildPath $fileName
|
||||
Write-Host "Downloading script from $url to $localFile"
|
||||
Invoke-WebRequest -Uri $url -OutFile $localFile
|
||||
Invoke-WebRequest -Uri $url -OutFile $localFile -UseBasicParsing
|
||||
Write-Host "Importing script from $localFile"
|
||||
. $localFile
|
||||
}
|
||||
}
|
||||
|
||||
$baseUrl = "https://git.justw.tf/Lightemerald/setup-script/raw/branch/main/"
|
||||
$localPath = "C:\setup-scripts"
|
||||
$localPath = Join-Path $env:LOCALAPPDATA "Temp"
|
||||
$scriptUrls = @(
|
||||
($baseUrl + "setupTmp.ps1"),
|
||||
($baseUrl + "setupOffice.ps1"),
|
||||
|
||||
Reference in New Issue
Block a user