change ignore error message

This commit is contained in:
Heavybullets8 2022-07-28 17:31:38 -06:00
parent 276f212687
commit 34c4e5f9cb
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ case $selection in
;;
2 | -i)
read -rt 600 -p "What is the name of the application we should ignore?: " up_ignore
! [[ $up_ignore =~ ^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$ ]] && echo -e "Error: \"$up_ignore\" is invalid, that is not the name youre using for your application" && sleep 5 && continue
! [[ $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 5 && continue
update_selection+=("-i" "$up_ignore")
;;
3 | -r)

View File

@ -72,7 +72,7 @@ do
;;
i)
if ! [[ $OPTARG =~ ^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$ ]]; then # Using case insensitive version of the regex used by Truenas Scale
echo -e "Error: \"$OPTARG\" is invalid, that is not the name youre using for your application"
echo -e "Error: \"$OPTARG\" is not a possible option for an application name"
exit
else
ignore+=("$OPTARG")