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