From 7a4622b3e37d727722f9fe0d590ee6cbde72b465 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 26 Jul 2022 13:10:09 -0600 Subject: [PATCH] re-arrange --- functions/menu.sh | 2 +- heavy_script.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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