From e5777e98f6fb07942a798ca1d722c512937f783b Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 6 Nov 2023 10:37:31 +0100 Subject: [PATCH] Fix5 --- setupScript.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupScript.ps1 b/setupScript.ps1 index df8800d..74846ec 100644 --- a/setupScript.ps1 +++ b/setupScript.ps1 @@ -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"),