[fix] Properly check YunoHost users

This commit is contained in:
Alexis Gavoty 2014-05-29 11:54:12 +02:00
parent aabd03caa5
commit 5a3a5cd23c

View file

@ -14,7 +14,7 @@ if [[ ! $? -eq 0 ]]; then
fi
# Check user
ls /home | grep $user
sudo yunohost user list --json | grep -q '"username": "$user"'
if [[ ! $? -eq 0 ]]; then
echo "Wrong user"
exit 1