From 10d6336671956813b7d8541a07fdeaa2b53777c3 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 26 Jul 2022 23:21:10 -0600 Subject: [PATCH] test --- functions/menu.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions/menu.sh b/functions/menu.sh index b01f93b9..0e5310b9 100644 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -171,6 +171,16 @@ 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") ;; + 99) + count=1 + echo "restarting" + for i in "${update_selection[@]:1}" + do + unset "update_selection[$count]" + echo "$i removed" + done + continue + ;; *) echo "\"$OPTARG\" was not an option, try again" && sleep 5 && continue ;;