summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-12-13 13:38:12 +0100
committerErich Eckner <git@eckner.net>2016-12-13 13:38:12 +0100
commitf03618e74e05e5cb7a2b355a40b4175ba85d3ed1 (patch)
treea03bb01fdc9b76c18bb71b4ec7d7904c71d52912
parent51bd7e7f6a628ebaeca1e386cc81106b2c3f9c2a (diff)
downloadhardlinkedBackups-f03618e74e05e5cb7a2b355a40b4175ba85d3ed1.tar.xz
Erfolgswahrscheinlichkeit von lastBackups fuer non-root erhoehen
-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} ]