Skip to content

Commit b1a65ba

Browse files
committed
FIX: using call/shell in the launch function
1 parent 0f56ce4 commit b1a65ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mezz/mezz-control.reb

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ launch: func [
1818
/wait "Wait for the process to terminate"
1919
/local exe
2020
][
21-
if file? script [script: to-local-file clean-path script]
21+
if file? script [script: to-local-file any [to-real-file script script]]
2222
exe: to-local-file system/options/boot
2323

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

3030
wrap: func [

0 commit comments

Comments
 (0)