Update main.sh

This commit is contained in:
dpeca 2019-07-30 22:06:47 +02:00 committed by GitHub
commit 019a039588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,7 @@ is_object_new() {
# Check if object is valid
is_object_valid() {
if [ $2 = 'USER' ]; then
is_user_format_valid $3
is_user_format_valid $3 'user'
if [ ! -d "$VESTA/data/users/$3" ]; then
check_result $E_NOTEXIST "$1 $3 doesn't exist"
fi