mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-19 21:44:06 +08:00
4 lines
235 B
PowerShell
4 lines
235 B
PowerShell
param([ValidatePattern('^[\w-]+$')][string]$Profile = 'desktop')
|
|
$ErrorActionPreference = 'Stop'
|
|
& node (Join-Path $PSScriptRoot 'install-preset.mjs') --profile $Profile
|
|
if ($LASTEXITCODE -ne 0) { throw 'Preset installation failed.' }
|