From 02db6d71b67d9efe33292fbf7f92da888aaf879f Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Wed, 17 Feb 2016 15:45:05 +0800 Subject: json_script: add "isdir" support Signed-off-by: Yousong Zhou --- examples/json_script-example.json | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/json_script-example.json b/examples/json_script-example.json index 45636b7..5328e59 100644 --- a/examples/json_script-example.json +++ b/examples/json_script-example.json @@ -27,6 +27,11 @@ [ "exec_if_or", "%ORVAR%" ] ], + [ "if", + [ "isdir", "%ISDIRVAR%" ], + [ "exec_isdir", "%ISDIRVAR%" ] + ], + [ "return", "foobar" ], [ "exec_non_reachable", "Arghhh" ] -- cgit v1.2.3