Fix run_docker to work on Mac (#1695) [skip ci]

This commit is contained in:
Ondřej Staněk 2021-07-09 19:41:28 +02:00 committed by GitHub
parent a671943bad
commit 601e474e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,11 +13,11 @@ USER_HOME="/src/.docker_home"
USER_NAME="$(id -u -n)"
USER_PASS="x"
USER_ID="$(id -u)"
USER_GID=0
USER_GID="$(id -g)"
USER_COMMENT_FIELD="${USER_NAME} pyodide user alias"
USER_INTERPRETER="/sbin/nologin"
USER_ACCOUNT_INFO="${USER_NAME}:${USER_PASS}:${USER_ID}:${USER_GID}:${USER_COMMENT_FIELD}:${USER_HOME}:${USER_INTERPRETER}"
USER_FLAG="--user $(id --user):$(id --group)"
USER_FLAG="--user $USER_ID:$USER_GID"
set -eo pipefail