Fix case when UID is None

This commit is contained in:
Oleksii Shevchuk 2018-10-03 12:50:44 +03:00
parent 08a0f85883
commit 9e1e65fd6c
1 changed files with 4 additions and 0 deletions

View File

@ -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}