diff --git a/scripts/Windows/OS/Setup.ps1 b/scripts/Windows/OS/Setup.ps1 index 7bd2359f..6ecefd79 100644 --- a/scripts/Windows/OS/Setup.ps1 +++ b/scripts/Windows/OS/Setup.ps1 @@ -230,7 +230,7 @@ function Start-Setup { Add-StartupCommand ` -Script ( "powershell -Command " + - ($env:DEBUG ? "`$env:DEBUG = $([int]$env:DEBUG)" : "") + + ($env:DEBUG ? "`$env:DEBUG = $([int]$env:DEBUG);" : "") + "`$env:PWSH_PATH = $(Get-PathInjection $env:PWSH_PATH);" + "`$env:INSTALLER_SCRIPT = $(Get-ScriptPathInjection $env:SETUP_SCRIPT_NAME);" + "`$env:CONFIG_MODULE = $(Get-ScriptPathInjection $env:CONFIG_MODULE);" + diff --git a/scripts/Windows/Scripts/PowerManagement.ps1 b/scripts/Windows/Scripts/PowerManagement.ps1 index ef48c1f1..3c9b332a 100644 --- a/scripts/Windows/Scripts/PowerManagement.ps1 +++ b/scripts/Windows/Scripts/PowerManagement.ps1 @@ -53,7 +53,7 @@ $null = New-Module { function Get-StartupArguments { "-Command " + ($env:PWSH_PATH ? "`$env:PWSH_PATH = $(ConvertTo-Injection $env:PWSH_PATH);" : "") + - ($env:DEBUG ? "`$env:DEBUG = $([int]$env:DEBUG)" : "") + + ($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));" + "& `$env:INSTALLER_SCRIPT;"; diff --git a/winiso/deploy.fish b/winiso/deploy.fish index d80e5425..c3ceab6f 100755 --- a/winiso/deploy.fish +++ b/winiso/deploy.fish @@ -136,7 +136,7 @@ begin "set SETUP_LABEL=$setupLabel" \ ( begin - if [ -n "$_flag_debug"] + if [ -n "$_flag_debug" ] echo "set DEBUG=1" end end