fix: correct the validation message

This commit is contained in:
Jose Diaz-Gonzalez
2019-03-09 16:39:35 -05:00
parent 35d5e9cab4
commit 7ce772224a
44 changed files with 44 additions and 44 deletions

View File

@@ -735,7 +735,7 @@ verify_service_name() {
is_valid_service_name() {
declare desc="Validates a service name"
declare SERVICE="$1"
[[ -z "$SERVICE" ]] && dokku_log_fail "SERVICE must not be null"
[[ -z "$SERVICE" ]] && return 1
if [[ "$SERVICE" =~ ^[A-Za-z0-9_]+$ ]]; then
return 0