summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlast-backups.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/last-backups.in b/last-backups.in
index 4a4c7e3..61117d0 100755
--- a/last-backups.in
+++ b/last-backups.in
@@ -59,13 +59,15 @@ do
delta=$[$(date +%s) - $(date -d $(echo ${lbu} | sed "s/_//g") +%s)]
namen[${#namen[@]}]=$(
basename $(
- echo "${dest}" \
- | sed '
- s#/\('"${recognSubdirRegex}"'\)$#_\1#
- ' \
+ printf '%s\n' "${dest}" \
| sed '
s#/rsync$##
s#/duplicity$##
+ ' \
+ | sed '
+ :a
+ s#/\('"${recognSubdirRegex}"'\)$#_\1#
+ ta
'
)
)