࿓❯ Added the echo statement for a message with invalid type

Signed-off-by: Victor-ray, S <12261439+ZendaiOwl@users.noreply.github.com>
This commit is contained in:
Victor-ray, S 2023-01-09 21:25:45 +01:00 committed by Tobias K
parent dbcb459f61
commit d33689c1f2

View File

@ -79,6 +79,7 @@ function is_port_open()
# Checks both port 80 & 443 for IPv4/IPv6 and returns the result or [N/A] [N/A]
if ! [[ "$TYPE" =~ ^(0|4|6)$ ]]
then
echo "Invalid type: $TYPE" 1>&2
return 1
elif [[ "$TYPE" == 0 ]]
then