From bdfc6634ec160ad5a1128881cda0172a78891fb4 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Wed, 13 Sep 2023 20:29:33 +0000 Subject: [PATCH] fix tempdir cleanup [skip ci] --- backup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 5f6d5347..8f0d20d7 100755 --- a/backup.sh +++ b/backup.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="29" +SCRIPT_VERSION="30" GREEN='\033[0;32m' YELLOW='\033[1;33m' @@ -143,6 +143,7 @@ if [[ $* == *--auto* ]]; then else 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" fi