aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Guilbault <philippe.guilbault@gmail.com>2016-12-10 22:57:10 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2016-12-11 15:00:33 +0000
commitcd395b7ece50492d51d8b1708ec91adf529ead18 (patch)
treeed44ffe74647fc60ea4572f91f3b66bec7e62f3e
parentbd4e2c5b0a11f09502f9bb9a6d842019a2fb7705 (diff)
downloadalpine-conf-cd395b7ece50492d51d8b1708ec91adf529ead18.tar.bz2
alpine-conf-cd395b7ece50492d51d8b1708ec91adf529ead18.tar.xz
BACKUP_LIMIT not working for encrypted backups
-rw-r--r--lbu.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbu.in b/lbu.in
index fe53d81..71301fe 100644
--- a/lbu.in
+++ b/lbu.in
@@ -482,7 +482,7 @@ cmd_commit() {
# delete old backups if needed
# poor mans 'head -n -N' done with awk.
- ls "$mnt"/$(hostname).[0-9][0-9][0-9][0-9]*[0-9].tar.gz 2>/dev/null \
+ ls "$mnt"/$(hostname).[0-9][0-9][0-9][0-9]*[0-9].tar.gz* 2>/dev/null \
| awk '{ a[++i] = $0; } END {
print a[0];
while (i-- > '"${BACKUP_LIMIT:-0}"') {