Skip to content

Commit c61127f

Browse files
committed
who could tell iex is bad
1 parent f8876cf commit c61127f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/install.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ $INSTALL_DIR = "C:\$($APP_NAME.CASED)"
88
$EXE_PATH = Join-Path -Path $INSTALL_DIR -ChildPath "$($APP_NAME.CLI).exe"
99

1010
# DETACH PROCESS
11-
if ($args[1] -ne "NA") {
11+
$IsIex = -not $PSCommandPath
12+
13+
if (-not $IsIex -and $args[1] -ne "NA") {
1214
Write-Output "(Detaching)"
1315
Start-Sleep -Seconds 1
1416
# powershell path (pwsh on PS Core, powershell on Windows PS)

0 commit comments

Comments
 (0)