Skip to content

Commit 71b67fa

Browse files
committed
Return correct error code is_base_domain_owner
1 parent 4ae6583 commit 71b67fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/domain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,14 +927,14 @@ is_base_domain_owner(){
927927
test=$(is_domain_new "" $basedomain)
928928
if [ $? -ne 0 ]; then
929929
echo "Error: $basedomain belongs to a different user";
930-
exit 1;
930+
exit 4;
931931
fi
932932
fi
933933
else
934934
test=$(is_domain_new "" $basedomain);
935935
if [ $? -ne 0 ]; then
936936
echo "Error: $basedomain belongs to a different user";
937-
exit 1;
937+
exit 4;
938938
fi
939939
fi
940940
fi

0 commit comments

Comments
 (0)