From b400dfe39d8f9631730c44a6dd5e4e291c3d51a2 Mon Sep 17 00:00:00 2001 From: Erfan <143827987+erfjab@users.noreply.github.com> Date: Sat, 16 Nov 2024 02:10:29 +0330 Subject: [PATCH] fix: remove bug (#33) --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 4a28e3a..2614d1b 100644 --- a/install.sh +++ b/install.sh @@ -110,7 +110,7 @@ check_needs() { menu() { while true; do print "\n\t Welcome to Backuper!" - print "\t\t version 0.2.4 by @ErfJab" + print "\t\t version 0.2.3 by @ErfJab" print "—————————————————————————————————————————————————————————————————————————" print "1) Install" print "2) Manage" @@ -783,7 +783,7 @@ backup_compression() { } backup_generate() { - local backup_script="/root/${name}_backuper.sh" + local backup_script="/root/${name}_backuper_.sh" log "Generating backup script: $backup_script..." local DB="" @@ -875,6 +875,7 @@ base_name="/root/${name}_\${timestamp}_backuper." backup_name="/root/${name}_\${timestamp}_backuper${compression_ext}" caption="${CAPTION_TEXT}" +rm -f *"_backuper."* rm -f "\$backup_name"* rm -f *"_backuper.sql" $(echo -e "$rm_commands")