forked from ungleich-public/cdist
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
This commit is contained in:
commit
cfe2afc225
1 changed files with 1 additions and 5 deletions
|
@ -20,11 +20,7 @@
|
||||||
|
|
||||||
path="/$__object_id"
|
path="/$__object_id"
|
||||||
|
|
||||||
if [ ! -d "$path" ]
|
[ ! -d "$path" ] && exit 0
|
||||||
then
|
|
||||||
echo "$path is not a directory" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
pattern="$( cat "$__object/parameter/pattern" )"
|
pattern="$( cat "$__object/parameter/pattern" )"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue