Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2016-02-17 10:45:05 +0300
committerFelix Fietkau <nbd@openwrt.org>2016-02-20 15:36:08 +0300
commit02db6d71b67d9efe33292fbf7f92da888aaf879f (patch)
treecaafaaa6c4490c2389378b22b886da7985f3b96d /examples
parentf43da92dd7b80d955de751c2cc53525447870d96 (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.json5
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" ]