From 578f57a13907afd6f8631160a10a783813ed8feb Mon Sep 17 00:00:00 2001 From: matanya Date: Mon, 20 Oct 2014 15:52:51 +0300 Subject: [PATCH] check if admin exists in case insensetive This will support pre beta 2 users. without it, every test fails. --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index bf3d1ad..2701bc4 100644 --- a/scripts/install +++ b/scripts/install @@ -12,7 +12,7 @@ if [[ ! $? -eq 0 ]]; then fi # Check if admin exists -sudo yunohost user list --json | grep -q "\"username\": \"$admin_ampache\"" +sudo yunohost user list --json | grep -qi "\"username\": \"$admin_ampache\"" if [[ ! $? -eq 0 ]]; then echo "Wrong admin" exit 1