[enh] Add ynh_user_exists helper.

This commit is contained in:
opi 2015-09-03 14:24:50 +02:00 committed by kload
parent 177f5f58f8
commit 258a9d6694

View file

@ -0,0 +1,3 @@
ynh_user_exists() {
sudo yunohost user list --json | grep -q "\"username\": \"${1}\""
}