backup-email: also remove the directory

This commit is contained in:
Christian Hesse 2025-05-30 23:07:31 +02:00
parent 2ef3a0bdf1
commit 3ea4179937

View file

@ -32,6 +32,7 @@
:global LogPrint;
:global MkDir;
:global RandomDelay;
:global RmDir;
:global ScriptFromTerminal;
:global ScriptLock;
:global SendEMail2;
@ -136,6 +137,7 @@
$LogPrint warning $ScriptName ("Files are still available, sending e-mail failed.");
:set PackagesUpdateBackupFailure true;
}
$RmDir $DirName;
} do={
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
}