summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlastBackups.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lastBackups.in b/lastBackups.in
index ce27350..ef742cd 100755
--- a/lastBackups.in
+++ b/lastBackups.in
@@ -58,7 +58,7 @@ do
[ "${lbu}" == "" ] && lbu="2000_01_01"
delta=$[$(date +%s) - $(date -d $(echo ${lbu} | sed "s/_//g") +%s)]
namen[${#namen[@]}]="$(basename $(echo ${dest} | sed "s#/\(${recognSubdirRegex}\)\$#_\1#" | sed "s#/rsync\$##; s#/duplicity\$##"))"
- if [ ! "$(ls -A ${dest}/${lbu})" ]
+ if [ ! -d "${dest}/${lbu}" ]
then
veraltet[${#veraltet[@]}]="LEER!"
elif [ ${delta} -gt ${outdatedLimit} ]