summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/value_checker.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value_checker.ml b/src/value_checker.ml
index 1f123c0..aa88f7b 100644
--- a/src/value_checker.ml
+++ b/src/value_checker.ml
@@ -17,7 +17,7 @@ let validate_value dir value_constraint value =
*)
let validator = F.concat dir v in
let arg = BatOption.default "" c in
- let safe_arg = "'" ^ Pcre.qreplace ~pat:"\"" ~templ:"\\\"" arg ^ "'" in
+ let safe_arg = Printf.sprintf "'%s'" (Pcre.qreplace ~pat:"\"" ~templ:"\\\"" arg) in
let result = Unix.system (Printf.sprintf "%s %s %s" validator safe_arg value) in
match result with
| Unix.WEXITED 0 -> true