From eca58a80759f697623395e6e26db6f850c0f2260 Mon Sep 17 00:00:00 2001 From: Toon Van Dooren Date: Fri, 19 Jan 2024 09:01:18 +0100 Subject: [PATCH] linux permissions - env side --- commands/env.cmd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/env.cmd b/commands/env.cmd index 9df78d52..7f464e1a 100644 --- a/commands/env.cmd +++ b/commands/env.cmd @@ -5,6 +5,9 @@ WARDEN_ENV_PATH="$(locateEnvPath)" || exit $? loadEnvConfig "${WARDEN_ENV_PATH}" || exit $? assertDockerRunning +HOST_UID=$(id -u) +HOST_GID=$(id -g) + if (( ${#WARDEN_PARAMS[@]} == 0 )) || [[ "${WARDEN_PARAMS[0]}" == "help" ]]; then # shellcheck disable=SC2153 $WARDEN_BIN env --help || exit $? && exit $?