[fix] Fix indent in valid_hostname

This commit is contained in:
William Wernert
2021-01-14 12:58:21 -05:00
parent 3c22738ae1
commit 82c7832d60

View File

@@ -284,7 +284,7 @@ valid_fqdn() {
valid_hostname() {
local hostname=$1
[[ $hostname =~ ^[a-zA-Z0-9\-]+$ ]] && [[ $hostname != 'localhost' ]] && return 0 || return 1
[[ $hostname =~ ^[a-zA-Z0-9\-]+$ ]] && [[ $hostname != 'localhost' ]] && return 0 || return 1
}
valid_ip4() {