From 4dc028163dc5ef2545303556f95143022a11310c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 18 Sep 2020 12:48:25 +0200 Subject: backup: delete empty backups directly at the end of backing up --- backup.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.in b/backup.in index 7bea69f..bd3d38b 100755 --- a/backup.in +++ b/backup.in @@ -232,7 +232,7 @@ erg=$? [ -n "${backgroundPid}" ] && kill "${backgroundPid}" -if [ ${erg} -eq 0 ] || [ ${erg} -eq 24 ]; then +if [ ${erg} -eq 0 ] || [ ${erg} -eq 24 ] && ! rmdir "${neues}/wip" 2>/dev/null; then chmod o-rwx "${neues}/wip" neueres_Datum="${Basis}/$(date "+%Y_%m_%d")" if [ ! -e "${neueres_Datum}" ]; then -- cgit v1.2.3-70-g09d2