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

remotes/origin/4.10
Ander Punnar 6 years ago
parent 001f9023a2
commit 668dc83632
  1. 6
      cdist/conf/type/__clean_path/explorer/list

@ -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" )"

Loading…
Cancel
Save