mirror of
https://github.com/gnh1201/welsonjs.git
synced 2026-04-19 02:28:41 +00:00
Update postInstall.ps1
This commit is contained in:
parent
3925df0e4e
commit
028ace4e17
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user