mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
chore: remplace which' by command -v'
Using `which' to test the existance of a program is deprecated in debian. Debian recommand to use `command -v' instead.
This commit is contained in:
parent
fd783336b8
commit
27e39a0fc8
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ let () =
|
||||||
Arg.parse ["-target", Arg.Set_string target, " set target"]
|
Arg.parse ["-target", Arg.Set_string target, " set target"]
|
||||||
(fun d -> dirs := d :: !dirs) "make.ml -target file dir+";
|
(fun d -> dirs := d :: !dirs) "make.ml -target file dir+";
|
||||||
if !target="" then failwith "please specify a target";
|
if !target="" then failwith "please specify a target";
|
||||||
if Sys.command "which qtest > /dev/null" <> 0 then (
|
if Sys.command "command -v qtest > /dev/null" <> 0 then (
|
||||||
(* create empty file *)
|
(* create empty file *)
|
||||||
let out = open_out !target in
|
let out = open_out !target in
|
||||||
output_string out "";
|
output_string out "";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue