diff options
author | Erich Eckner <git@eckner.net> | 2020-09-18 12:48:25 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-09-18 12:48:25 +0200 |
commit | 4dc028163dc5ef2545303556f95143022a11310c (patch) | |
tree | 8d2257849a3c006daba0105a5c3e92e13164a786 | |
parent | 5799068670ecbcfa4f1a7ce55d7ca26215a68b5c (diff) | |
download | hardlinkedBackups-4dc028163dc5ef2545303556f95143022a11310c.tar.xz |
backup: delete empty backups directly at the end of backing up
-rwxr-xr-x | backup.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |