From 6051502c1eb02d25d3f3efb2580585cbead87d71 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Tue, 14 Jun 2022 09:18:19 +0200 Subject: [PATCH] Set umask in _dockerfile_shell.sh when given --- _dockerfile_shell.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_dockerfile_shell.sh b/_dockerfile_shell.sh index 860209e..92125c0 100755 --- a/_dockerfile_shell.sh +++ b/_dockerfile_shell.sh @@ -7,4 +7,9 @@ if [[ "${MAMBA_DOCKERFILE_ACTIVATE}" == "1" ]]; then source _activate_current_env.sh fi +# Set umask if given +if [[ ! -z "${DOCKERFILE_UMASK}" ]]; then + umask "${DOCKERFILE_UMASK}" +fi + exec bash -o pipefail -c "$@"