diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2016-02-17 10:45:05 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-02-20 15:36:08 +0300 |
commit | 02db6d71b67d9efe33292fbf7f92da888aaf879f (patch) | |
tree | caafaaa6c4490c2389378b22b886da7985f3b96d /examples | |
parent | f43da92dd7b80d955de751c2cc53525447870d96 (diff) |
json_script: add "isdir" support
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/json_script-example.json | 5 |
1 files changed, 5 insertions, 0 deletions
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" ] |