change ignore error message
This commit is contained in:
parent
276f212687
commit
34c4e5f9cb
@ -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)
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user