From 55d879419f8b4280feaeb6d2051da0f28ae45b1d Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Wed, 16 Dec 2015 15:33:12 +0100 Subject: [PATCH] Bugfix: check return status, not return value --- entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint b/entrypoint index 9edf409..7a49d76 100755 --- a/entrypoint +++ b/entrypoint @@ -44,7 +44,7 @@ function createUser() { if [ -n "$gid" ]; then useraddOptions="$useraddOptions --gid $gid" - if [ $(cat /etc/group | cut -d: -f3 | grep -q "$gid") ]; then + if ! $(cat /etc/group | cut -d: -f3 | grep -q "$gid"); then groupadd --gid $gid $gid fi fi