From 9e1e65fd6c4c5467e94c053d72f7432ab7a2d89e Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Wed, 3 Oct 2018 12:50:44 +0300 Subject: [PATCH] Fix case when UID is None --- start-compose.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/start-compose.sh b/start-compose.sh index 1584f26e..cd906b87 100755 --- a/start-compose.sh +++ b/start-compose.sh @@ -12,6 +12,10 @@ if [ ! -d ${WORKDIR} ]; then mkdir -p ${WORKDIR} fi +if [ ! -z "${UID}" ]; then + UID=`id -u` +fi + echo "[+] Workdir: ${WORKDIR} [UID=${UID} GID=${GID}]" cd ${PUPY}