add error detection to backup listing
This commit is contained in:
parent
4e47c881fb
commit
96171314d7
1 changed files with 2 additions and 1 deletions
|
@ -482,7 +482,8 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
||||||
_techo "Removing ${remove} backup(s)..."
|
_techo "Removing ${remove} backup(s)..."
|
||||||
|
|
||||||
pcmd ls -p1 "$ddir" | grep "^${INTERVAL}\..*/\$" | \
|
pcmd ls -p1 "$ddir" | grep "^${INTERVAL}\..*/\$" | \
|
||||||
sort -n | head -n "${remove}" > "${TMP}"
|
sort -n | head -n "${remove}" > "${TMP}" || \
|
||||||
|
_exit_err "Listing old backups failed"
|
||||||
|
|
||||||
i=0
|
i=0
|
||||||
while read to_remove; do
|
while read to_remove; do
|
||||||
|
|
Loading…
Reference in a new issue