nd002test/on-premise/main/rancher_v2.9.1/source/rancher-2.9.1/scripts/windows/entry.ps1

14 lines
317 B
PowerShell

$ErrorActionPreference = 'Stop'
$SCRIPT_PATH = ("{0}\{1}.ps1" -f $PSScriptRoot, $Args[0])
if (Test-Path $SCRIPT_PATH -ErrorAction Ignore)
{
Invoke-Expression -Command $SCRIPT_PATH
if (-not $?) {
exit 255
}
exit 0
}
Start-Process -Wait -FilePath $Args[0] -ArgumentList $Args[1..$Args.Length]