Skip to content

Commit

Permalink
Modified console.ps1 to execute the application inside the current po…
Browse files Browse the repository at this point in the history
…wershell window
  • Loading branch information
artman41 committed Jan 10, 2019
1 parent 65328cb commit 0fd6290
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions priv/libexec/commands/win/console.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Run the app in console mode
$bin = whereis-erts-bin
$werl = (join-path $bin werl)
$erl = (join-path $bin "erl.exe") #get erl.exe as werl.exe will open a new window

$boot = (join-path $Env:REL_DIR $Env:REL_NAME)

Expand All @@ -18,6 +18,6 @@ $post_start = {
}

# Run post-start hooks asynchronously
start-job -Name "post_start hooks" -ScriptBlock $post_start
start-job -Name "post_start hooks" -ScriptBlock $post_start | out-null # hide the output from start-job

& $werl @argv
start-process "$erl" -ArgumentList "$argv" -Wait -NoNewWindow #execute the application in the current shell window

0 comments on commit 0fd6290

Please sign in to comment.