From dfc6b46e1d52624fa95e9ecb630be9a8843b36b0 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Thu, 1 Sep 2022 16:40:08 +0000 Subject: [PATCH] scripts/docker-run.sh: fix wrong "id -n" command -> "id -u" Fixes commit d09844ab98cc ("zephyr/docker-build.sh: match UID with 'adduser' instead of 'chgrp -R'") Signed-off-by: Marc Herbert --- scripts/docker-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker-run.sh b/scripts/docker-run.sh index 96034cf27..58dd16b59 100755 --- a/scripts/docker-run.sh +++ b/scripts/docker-run.sh @@ -27,7 +27,7 @@ fi # Not fatal, just a warning to allow other "creative" solutions. # TODO: fix this with 'adduser' like in zephyr/docker-build.sh -test "$(id -n)" = 1001 || +test "$(id -u)" = 1001 || >&2 printf "Warning: this script should be run as user ID 1001 to match the container\n" set -x