echo"3) -S | Shutdown applications prior to updating"
echo"4) -v | verbose output"
echo"5) -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
echo"Additional Options"
echo"------------------"
echo"6) -b | Back-up your ix-applications dataset, specify a number after -b"
printf'%s\0'"${update_selection[@]}"| grep -Fxqz -- "-r"&&echo -e "\"-r\" is already on here, skipping"&& sleep 3&&continue#If option is already on there, skip it
! [[$up_ignore=~ ^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$ ]]&&echo -e "Error: \"$up_ignore\" is not a possible option for an application name"&& sleep 3&&continue
printf'%s\0'"${update_selection[@]}"| grep -Fxqz -- "-S"&&echo -e "\"-S\" is already on here, skipping"&& sleep 3&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz -- "-v"&&echo -e "\"-v\" is already on here, skipping"&& sleep 3&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz -- "-t"&&echo -e "\"-t\" is already on here, skipping"&& sleep 3&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz -- "-b"&&echo -e "\"-b\" is already on here, skipping"&& sleep 3&&continue#If option is already on there, skip it
echo"Up to how many backups should we keep?"
read -rt 120 -p "Please type an integer: " up_backups ||{echo -e "\nFailed to make a selection in time"; exit;}
! [[$up_backups=~ ^[0-9]+$ ]]&&echo -e "Error: \"$up_backups\" is invalid, it needs to be an integer\nNOT adding it to the list"&& sleep 3&&continue
[[$up_backups==0]]&&echo -e "Error: Number of backups cannot be 0\nNOT adding it to the list"&& sleep 3&&continue
printf'%s\0'"${update_selection[@]}"| grep -Fxqz -- "-s"&&echo -e "\"-s\" is already on here, skipping"&& sleep 3&&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 3&&continue#If option is already on there, skip it
printf'%s\0'"${update_selection[@]}"| grep -Fxqz -- "--self-update"&&echo -e "\"--self-update\" is already on here, skipping"&& sleep 3&&continue#If option is already on there, skip it