Don't return *, if bash glob don't find files/dir in evobackup-rm.
This commit is contained in:
parent
26de127a14
commit
905051be35
|
@ -7,6 +7,8 @@
|
||||||
tmpdir=$(mktemp --tmpdir=/tmp -d evobackup.XXX)
|
tmpdir=$(mktemp --tmpdir=/tmp -d evobackup.XXX)
|
||||||
emptydir=$(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 each client, delete needed incrementals.
|
||||||
for client in ${CONFDIR}/*; do
|
for client in ${CONFDIR}/*; do
|
||||||
# Get only the name of the backup.
|
# Get only the name of the backup.
|
||||||
|
|
Loading…
Reference in a new issue