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