diff --git a/functions/menu.sh b/functions/menu.sh index 2dc39f69..72e3df90 100644 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -34,7 +34,7 @@ menu(){ 6) deleteBackup="true" ;; - 9) + 7) echo "" echo "1 Update Apps Excluding likely breaking major changes" echo "2 Update Apps Including likely breaking major changes" diff --git a/heavy_script.sh b/heavy_script.sh index 1428a86e..0977b086 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -1,9 +1,5 @@ #!/bin/bash -#If no argument is passed, kill the script. -[[ -z "$*" || "-" == "$*" || "--" == "$*" ]] && menu - - # shellcheck source=functions/backup.sh source functions/backup.sh # shellcheck source=functions/dns.sh @@ -20,6 +16,10 @@ source functions/self_update.sh source functions/update_apps.sh +#If no argument is passed, kill the script. +[[ -z "$*" || "-" == "$*" || "--" == "$*" ]] && menu + + # Parse script options while getopts ":sirb:t:uUpSRv-:" opt do