Skip to content

Commit 16644a4

Browse files
authored
use short options to be POSIX compliant (#902)
fix #901
1 parent 3821041 commit 16644a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/library.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ let set_lib_root : string option -> unit = fun dir ->
146146
(* [Sys_error] is raised if [pth] does not exist. *)
147147
(* We try to create [pth]. *)
148148
let target = Filename.quote pth in
149-
let cmd = String.concat " " ["mkdir"; "--parent"; target] in
149+
let cmd = String.concat " " ["mkdir"; "-p"; target] in
150+
(* Use short option to be POSIX compliant. *)
150151
match Sys.command cmd with
151152
| 0 -> ()
152153
| _ ->

0 commit comments

Comments
 (0)