Don't return *, if bash glob don't find files/dir in evobackup-rm.

This commit is contained in:
Benoît S. 2014-01-30 15:25:11 +01:00
parent 26de127a14
commit 905051be35

View file

@ -7,6 +7,8 @@
tmpdir=$(mktemp --tmpdir=/tmp -d evobackup.XXX)
emptydir=$(mktemp --tmpdir=/tmp -d evobackup.XXX)
# Don't return *, if bash glob don't find files/dir.
shopt -s nullglob
# For each client, delete needed incrementals.
for client in ${CONFDIR}/*; do
# Get only the name of the backup.