projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
json_script: add "isdir" support
[project/libubox.git]
/
examples
/
json_script-example.json
diff --git
a/examples/json_script-example.json
b/examples/json_script-example.json
index 45636b725001e0acc82d97aa3aaf06fb1ba9e439..5328e599a5919e01c171e1125ab94e2e7782509d 100644
(file)
--- 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" ]