From 26b85642e080d68eb3fbd60cbb7d28e7ea99abd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 12 Feb 2017 10:59:44 +0100 Subject: [PATCH] use helper --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index edeafbd..0de629c 100755 --- a/scripts/install +++ b/scripts/install @@ -17,7 +17,7 @@ admin_user=$3 # Check user parameter if not empty if [[ $admin_user != '' ]]; then - sudo yunohost user list --json | grep -qi "\"username\": \"$admin_user\"" + ynh_user_exists $admin_user if [[ ! $? -eq 0 ]]; then echo "Wrong user" exit 1