Skip to content

Commit dfc6b46

Browse files
marc-hblgirdwood
authored andcommitted
scripts/docker-run.sh: fix wrong "id -n" command -> "id -u"
Fixes commit d09844a ("zephyr/docker-build.sh: match UID with 'adduser' instead of 'chgrp -R'") Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent b9dc0f1 commit dfc6b46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/docker-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727

2828
# Not fatal, just a warning to allow other "creative" solutions.
2929
# TODO: fix this with 'adduser' like in zephyr/docker-build.sh
30-
test "$(id -n)" = 1001 ||
30+
test "$(id -u)" = 1001 ||
3131
>&2 printf "Warning: this script should be run as user ID 1001 to match the container\n"
3232

3333
set -x

0 commit comments

Comments
 (0)