mirror of
https://github.com/YunoHost-Apps/yourls_ynh.git
synced 2024-09-03 20:35:59 +02:00
Check admin user case insensitive
This commit is contained in:
parent
7ac0f33801
commit
07f0e6e4f3
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ exit 1
|
|||
fi
|
||||
|
||||
# Check that admin user is an existing account
|
||||
sudo yunohost user list --json | grep -q "\"username\": \"$admin_user\""
|
||||
sudo yunohost user list --json | grep -qi "\"username\": \"$admin_user\""
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
echo "Error : the chosen admin user does not exist"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue