This commit is contained in:
2023-11-06 10:37:31 +01:00
parent 46ab70b3d4
commit e5777e98f6

View File

@@ -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"),