echo"1) -b | Back-up your ix-applications dataset, specify a number after -b"
echo"2) -i | Add application to ignore list, one by one, see example below."
echo"3) -r | Roll-back applications if they fail to update"
echo"4) -S | Shutdown applications prior to updating"
echo"5) -v | verbose output"
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
echo"0) Done making selections, proceed with update"
echo
echo"Current Choices"
echo"---------------"
echo"bash heavy_script.sh ${update_selection[*]}"
echo
read -rt 600 -p "Please type the number associated with the flag above: " current_selection
printf'%s\0'"${update_selection[@]}"| grep -Fxq '-b'&&echo -e "$OPTARG is already on here, skipping"&& sleep 5&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz "-r"&&echo -e "$OPTARG is already on here, skipping"&& sleep 5&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz "-S"&&echo -e "$OPTARG is already on here, skipping"&& sleep 5&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz "-v"&&echo -e "$OPTARG is already on here, skipping"&& sleep 5&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz "-t"&&echo -e "$OPTARG is already on here, skipping"&& sleep 5&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz "-s"&&echo -e "$OPTARG 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 "$OPTARG is already on here, skipping"&& sleep 5&&continue#If option is already on there, skip it