Explorar el Código

Improve error output

Jaap Marcus hace 3 años
padre
commit
32fd4cad6d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      func/domain.sh

+ 2 - 2
func/domain.sh

@@ -988,14 +988,14 @@ is_base_domain_owner(){
                     parse_object_kv_list "$web"
                     if [ -z "$ALLOW_USERS" ] ||  [ "$ALLOW_USERS" != "yes" ]; then
                         # Don't care if $basedomain all ready exists only if the owner is of the base domain is the current user
-                        is_domain_new "" $basedomain;
+                        check=$(is_domain_new "" $basedomain)
                         if [ $? -ne 0 ]; then
                             echo "Error: $basedomain belongs to a different user";
                             exit 4;
                         fi
                     fi
                 else
-                    is_domain_new "" "$basedomain"
+                    check=$(is_domain_new "" "$basedomain")
                     if [ $? -ne 0 ]; then
                         echo "Error: $basedomain belongs to a different user";
                         exit 4;