We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d210aeb commit f8876cfCopy full SHA for f8876cf
1 file changed
docs/install.ps1
@@ -9,12 +9,16 @@ $EXE_PATH = Join-Path -Path $INSTALL_DIR -ChildPath "$($APP_NAME.CLI).exe"
9
10
# DETACH PROCESS
11
if ($args[1] -ne "NA") {
12
+ Write-Output "(Detaching)"
13
+ Start-Sleep -Seconds 1
14
# powershell path (pwsh on PS Core, powershell on Windows PS)
15
$exe = if ($PSVersionTable.PSEdition -eq "Core") { "pwsh" } else { "powershell" }
16
$script = $PSCommandPath
17
18
Start-Process -FilePath $exe -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$script`" _ NA"
19
# quit parent
20
+ Write-Output "(Quitting)"
21
22
exit
23
}
24
0 commit comments