mirror of https://github.com/n1nj4sec/pupy.git
Fix case when UID is None
This commit is contained in:
parent
08a0f85883
commit
9e1e65fd6c
|
@ -12,6 +12,10 @@ if [ ! -d ${WORKDIR} ]; then
|
||||||
mkdir -p ${WORKDIR}
|
mkdir -p ${WORKDIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "${UID}" ]; then
|
||||||
|
UID=`id -u`
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[+] Workdir: ${WORKDIR} [UID=${UID} GID=${GID}]"
|
echo "[+] Workdir: ${WORKDIR} [UID=${UID} GID=${GID}]"
|
||||||
|
|
||||||
cd ${PUPY}
|
cd ${PUPY}
|
||||||
|
|
Loading…
Reference in New Issue