Unverified Commit cfe2afc2 authored by Darko Poljak's avatar Darko Poljak Committed by GitHub

Merge pull request #745 from 4nd3r/__clean_path_fix

__clean_path: do not exit with non-zero if path does not exist or not directory
parents 001f9023 668dc836
......@@ -20,11 +20,7 @@
if [ ! -d "$path" ]
echo "$path is not a directory" >&2
exit 1
[ ! -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