fix tempdir cleanup [skip ci]

This commit is contained in:
wh1te909 2023-09-13 20:29:33 +00:00
parent ca4d19667b
commit bdfc6634ec
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SCRIPT_VERSION="29" SCRIPT_VERSION="30"
GREEN='\033[0;32m' GREEN='\033[0;32m'
YELLOW='\033[1;33m' YELLOW='\033[1;33m'
@ -143,6 +143,7 @@ if [[ $* == *--auto* ]]; then
else else
tar -cf /rmmbackups/rmm-backup-${dt_now}.tar -C ${tmp_dir} . tar -cf /rmmbackups/rmm-backup-${dt_now}.tar -C ${tmp_dir} .
rm -rf ${tmp_dir}
echo -ne "${GREEN}Backup saved to /rmmbackups/rmm-backup-${dt_now}.tar${NC}\n" echo -ne "${GREEN}Backup saved to /rmmbackups/rmm-backup-${dt_now}.tar${NC}\n"
fi fi