Skip to content

Commit

Permalink
Remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Oct 29, 2024
1 parent aaf957b commit 986f378
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions installers/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,12 @@ function setShellOverride
{
# Walk up the process tree to find cmd.exe
# If we encounter it we set the shell override
Write-Host "Walking up the process tree to find cmd.exe"
$currentPid = $PID
while ($currentPid -ne 0)
{
$process = Get-WmiObject Win32_Process | Where-Object { $_.ProcessId -eq $currentPid }
if (!$process) { break }

Write-Host "Checking process $($process.Name) with PID $($process.ProcessId)"
if ($process.Name -eq "cmd" -or $process.Name -eq "cmd.exe")
{
[System.Environment]::SetEnvironmentVariable("ACTIVESTATE_CLI_SHELL_OVERRIDE", $process.Name, "Process")
Expand Down Expand Up @@ -271,7 +269,6 @@ $PSDefaultParameterValues['*:Encoding'] = 'utf8'
# Run the installer.
$env:ACTIVESTATE_SESSION_TOKEN = $script:SESSION_TOKEN_VALUE
setShellOverride
Write-Host "Shell override: $env:ACTIVESTATE_CLI_SHELL_OVERRIDE"
& $exePath $args --source-installer="install.ps1"
$success = $?
if (Test-Path env:ACTIVESTATE_SESSION_TOKEN)
Expand Down

0 comments on commit 986f378

Please sign in to comment.