Skip to content

Commit 39f874b

Browse files
committed
fix mono
1 parent 7a34a65 commit 39f874b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

fcs/build.fsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ System.Console.OutputEncoding <- System.Text.Encoding.UTF8
2222
let assertExitCodeZero x = if x = 0 then () else failwithf "Command failed with exit code %i" x
2323
let runCmdIn workDir (exe:string) = Printf.ksprintf (fun (args:string) ->
2424
#if MONO
25-
printfn "mono %s/%s %s" workDir exe args
26-
Shell.Exec("mono", sprintf "%s %s" (exe.Replace("\\","/")) (args.Replace("\\","/")), workDir)
25+
let exe = exe.Replace("\\","/")
26+
let args = args.Replace("\\","/")
27+
printfn "[%s] mono %s %s" workDir exe args
28+
Shell.Exec("mono", sprintf "%s %s" exe args, workDir)
2729
#else
28-
printfn "%s/%s %s" workDir exe args
30+
printfn "[%s] %s %s" workDir exe args
2931
Shell.Exec(exe, args, workDir)
3032
#endif
3133
|> assertExitCodeZero

0 commit comments

Comments
 (0)