summaryrefslogtreecommitdiff
path: root/lastBackups.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-21 21:47:59 +0200
committerErich Eckner <git@eckner.net>2016-05-21 21:47:59 +0200
commitde60f08ac30c1f5d5aada4e608271187a60f10c3 (patch)
tree912f4a65909aec87e0f62e451c7b220481bb5665 /lastBackups.in
parentc1c75c8108f27fcbe98a0bdf14590f70ac369acd (diff)
downloadhardlinkedBackups-de60f08ac30c1f5d5aada4e608271187a60f10c3.tar.xz
Anzeigebug in lastBackups entfernt
Diffstat (limited to 'lastBackups.in')
-rwxr-xr-xlastBackups.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/lastBackups.in b/lastBackups.in
index ea6040a..6366058 100755
--- a/lastBackups.in
+++ b/lastBackups.in
@@ -30,11 +30,15 @@ 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\$##"))"
- [ ! "$(ls -A ${dest}/${lbu})" ] &&
- veraltet[${#veraltet[@]}]="LEER!" ||
- [ ${delta} -gt ${outdatedLimit} ] && \
- veraltet[${#veraltet[@]}]="VERALTET!" || \
- veraltet[${#veraltet[@]}]=""
+ if [ ! "$(ls -A ${dest}/${lbu})" ]
+ then
+ veraltet[${#veraltet[@]}]="LEER!"
+ elif [ ${delta} -gt ${outdatedLimit} ]
+ then
+ veraltet[${#veraltet[@]}]="VERALTET!"
+ else
+ veraltet[${#veraltet[@]}]=""
+ fi
daten[${#daten[@]}]="${lbu}"
done