Generate env variables using shorthand scripts
This commit is contained in:
parent
2034f5c9f6
commit
1701213a77
1 changed files with 1 additions and 7 deletions
|
@ -52,13 +52,7 @@ $null = New-Module {
|
|||
#>
|
||||
function Get-StartupArguments {
|
||||
"-Command " +
|
||||
(& {
|
||||
if ($env:PWSH_PATH) {
|
||||
"`$env:PWSH_PATH = $(ConvertTo-Injection $env:PWSH_PATH);"
|
||||
} else {
|
||||
""
|
||||
}
|
||||
}) +
|
||||
($env:PWSH_PATH ? "`$env:PWSH_PATH = $(ConvertTo-Injection $env:PWSH_PATH);" : "") +
|
||||
($env:DEBUG ? "`$env:DEBUG = $([int]$env:DEBUG)" : "") +
|
||||
"`$env:INSTALLER_SCRIPT = $(ConvertTo-Injection (Resolve-Path $env:INSTALLER_SCRIPT));" +
|
||||
"`$env:CONFIG_MODULE = $(ConvertTo-Injection (Resolve-Path $env:CONFIG_MODULE));" +
|
||||
|
|
Loading…
Reference in a new issue