Skip to content

Commit

Permalink
FIX: using call/shell in the launch function
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Nov 19, 2021
1 parent 0f56ce4 commit b1a65ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mezz/mezz-control.reb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ launch: func [
/wait "Wait for the process to terminate"
/local exe
][
if file? script [script: to-local-file clean-path script]
if file? script [script: to-local-file any [to-real-file script script]]
exe: to-local-file system/options/boot

; Quote everything, just in case it has spaces:
args: to-string reduce [{"} exe {" "} script {" }]
if arg [append args arg]
either wait [call/wait args] [call args]
either wait [call/wait/shell args] [call/shell args]
]

wrap: func [
Expand Down

0 comments on commit b1a65ba

Please sign in to comment.