scripts/docker-run.sh: fix wrong "id -n" command -> "id -u"

Fixes commit d09844ab98 ("zephyr/docker-build.sh: match UID with
'adduser' instead of 'chgrp -R'")

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2022-09-01 16:40:08 +00:00 committed by Liam Girdwood
parent b9dc0f1bb9
commit dfc6b46e1d
1 changed files with 1 additions and 1 deletions

View File

@ -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