Commit 3eb555e603299d93f684c7558919f9f12d99aebd

Authored by Alexis Gavoty
Exists in master

Merge pull request #22 from mat-mo/master

check if admin exists in case insensetive

Showing 1 changed file Side-by-side Diff

... ... @@ -6,7 +6,7 @@ path=$2
6 6 user=$3
7 7  
8 8 # Check user parameter
9   -sudo yunohost user list --json | grep -q "\"username\": \"$user\""
  9 +sudo yunohost user list --json | grep -qi "\"username\": \"$user\""
10 10 if [[ ! $? -eq 0 ]]; then
11 11 echo "Wrong user"
12 12 exit 1