Commit 668dc836 authored by Ander Punnar's avatar Ander Punnar

do not exit with non-zero if path does not exist or not directory

parent 001f9023
......@@ -20,11 +20,7 @@
path="/$__object_id"
if [ ! -d "$path" ]
then
echo "$path is not a directory" >&2
exit 1
fi
[ ! -d "$path" ] && exit 0
pattern="$( cat "$__object/parameter/pattern" )"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment