# Check if a user exists ynh_user_exists() { sudo yunohost user list --json | grep -q "\"username\": \"${1}\"" }