Update postInstall.ps1

This commit is contained in:
Namhyeon, Go 2025-12-20 15:32:21 +09:00
parent 3925df0e4e
commit 028ace4e17

View File

@ -56,7 +56,7 @@ $urlsFilePath = Join-Path $ScriptRoot "data/DownloadUrls.psd1"
if (Test-Path $urlsFilePath) {
try {
if (Get-Command Import-PowerShellDataFile -ErrorAction SilentlyContinue) {
$DownloadUrls = Import-PowerShellDataFile $urlsFilePath
$DownloadUrls = Import-PowerShellDataFile -Path $urlsFilePath
} else {
$DownloadUrls = Invoke-Expression (Get-Content $urlsFilePath -Raw) # Tested in Windows 8.1
}