From 13a2a2f8b2a3b77469ad90c097d889afc25d8aa6 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 26 Jul 2022 18:32:35 -0600 Subject: [PATCH] fix delete backup --- functions/menu.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/functions/menu.sh b/functions/menu.sh index 595c0444..6d405efb 100644 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -1,6 +1,10 @@ #!/bin/bash menu(){ + script=$(readlink -f "$0") + script_path=$(dirname "$script") + script_name="heavy_script.sh" + cd "$script_path" || exit clear -x title echo "1) Help" @@ -42,15 +46,13 @@ menu(){ ;; 6) deleteBackup="true" + exec bash "$script_name" --restore + exit ;; 7) self_update="true" ;; 8) - script=$(readlink -f "$0") - script_path=$(dirname "$script") - script_name="heavy_script.sh" - cd "$script_path" || exit while true do clear -x