From 08fc46e66707bd04ce65d92b6f2b8a215a9ea5c1 Mon Sep 17 00:00:00 2001 From: winkidney Date: Sun, 19 Aug 2018 03:55:45 -0700 Subject: [PATCH] Fix: Fix non-effect env --- start_docker_with_current_user.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start_docker_with_current_user.sh b/start_docker_with_current_user.sh index 90dbfe5..8b15770 100755 --- a/start_docker_with_current_user.sh +++ b/start_docker_with_current_user.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash -CURRENT_UID=$(id -u):$(id -g) sudo docker-compose up ${@} +_CURRENT_UID=$(id -u):$(id -g) +sudo CURRENT_UID=${_CURRENT_UID} docker-compose up ${@}