Refactor Update-Scripts function to create temporary directory in script folder and update .gitignore for new paths
This commit is contained in:
@@ -41,8 +41,8 @@ function Update-Scripts {
|
||||
}
|
||||
}
|
||||
|
||||
# Create a temporary directory to download files
|
||||
$tempDir = Join-Path -Path $env:TEMP -ChildPath "windows-install-update"
|
||||
# Create a temporary directory in the script folder (will be ignored by git)
|
||||
$tempDir = Join-Path -Path $updateScriptDir -ChildPath "temp"
|
||||
if (Test-Path $tempDir) { Remove-Item $tempDir -Recurse -Force }
|
||||
New-Item -ItemType Directory -Path $tempDir -Force | Out-Null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user