selfupdate to menu update

This commit is contained in:
Heavybullets8 2022-07-28 16:04:41 -06:00
parent 8da7373f33
commit e2dfead10a

View File

@ -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 "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 "7) -s | sync catalog"
echo "8) -p | Prune unused/old docker images" echo "8) -p | Prune unused/old docker images"
echo "9) --self-update | Updates HeavyScript prior to running any other commands"
echo echo
echo "99) Remove Update Options, Restart" echo "99) Remove Update Options, Restart"
echo "00) Done making selections, proceed with update" 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 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") 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) 99)
count=2 count=2
echo "restarting" echo "restarting"