1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

use helper

This commit is contained in:
Clément 2017-02-12 10:59:44 +01:00
parent 6f7548434f
commit 26b85642e0

View file

@ -17,7 +17,7 @@ admin_user=$3
# Check user parameter if not empty # Check user parameter if not empty
if [[ $admin_user != '' ]]; then if [[ $admin_user != '' ]]; then
sudo yunohost user list --json | grep -qi "\"username\": \"$admin_user\"" ynh_user_exists $admin_user
if [[ ! $? -eq 0 ]]; then if [[ ! $? -eq 0 ]]; then
echo "Wrong user" echo "Wrong user"
exit 1 exit 1