Skip to content

Commit

Permalink
use short options to be POSIX compliant (#902)
Browse files Browse the repository at this point in the history
fix #901
  • Loading branch information
fblanqui authored Aug 2, 2022
1 parent 3821041 commit 16644a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/library.ml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ let set_lib_root : string option -> unit = fun dir ->
(* [Sys_error] is raised if [pth] does not exist. *)
(* We try to create [pth]. *)
let target = Filename.quote pth in
let cmd = String.concat " " ["mkdir"; "--parent"; target] in
let cmd = String.concat " " ["mkdir"; "-p"; target] in
(* Use short option to be POSIX compliant. *)
match Sys.command cmd with
| 0 -> ()
| _ ->
Expand Down

0 comments on commit 16644a4

Please sign in to comment.