From e2dfead10a046008a64daa6f39f13efa5f272ba8 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Thu, 28 Jul 2022 16:04:41 -0600 Subject: [PATCH] selfupdate to menu update --- functions/menu.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/menu.sh b/functions/menu.sh index 1ac5659e..9fcafab9 100644 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -114,6 +114,7 @@ case $selection in echo "6) -t | Set a custom timeout in seconds when checking if either an App or Mountpoint correctly Started, Stopped or (un)Mounted. Defaults to 500 seconds" echo "7) -s | sync catalog" echo "8) -p | Prune unused/old docker images" + echo "9) --self-update | Updates HeavyScript prior to running any other commands" echo echo "99) Remove Update Options, Restart" echo "00) Done making selections, proceed with update" @@ -171,6 +172,10 @@ case $selection in printf '%s\0' "${update_selection[@]}" | grep -Fxqz -- "-p" && echo -e "\"-p\" is already on here, skipping" && sleep 5 && continue #If option is already on there, skip it update_selection+=("-p") ;; + 9 | --self-update ) + printf '%s\0' "${update_selection[@]}" | grep -Fxqz -- "--self-update" && echo -e "\"--self-update\" is already on here, skipping" && sleep 5 && continue #If option is already on there, skip it + update_selection+=("--self-update") + ;; 99) count=2 echo "restarting"