diff options
author | Erich Eckner <git@eckner.net> | 2016-05-21 21:47:59 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-21 21:47:59 +0200 |
commit | de60f08ac30c1f5d5aada4e608271187a60f10c3 (patch) | |
tree | 912f4a65909aec87e0f62e451c7b220481bb5665 | |
parent | c1c75c8108f27fcbe98a0bdf14590f70ac369acd (diff) | |
download | hardlinkedBackups-de60f08ac30c1f5d5aada4e608271187a60f10c3.tar.xz |
Anzeigebug in lastBackups entfernt
-rwxr-xr-x | lastBackups.in | 14 |
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 |