1
0
Fork 0

Use `whoami` instead of $USER

If TMPDIR doesn't exist, USER also may not exist. `mkdir` then throws an
error after this because TMPDIR is /tmp/, which already exists.
pull/605/head
Alpha Chen 11 years ago
parent bf9dbfd5b9
commit f463d1fdfa

@ -66,7 +66,7 @@ fi
#
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$USER"
export TMPDIR="/tmp/`whoami`"
mkdir -p -m 700 "$TMPDIR"
fi

Loading…
Cancel
Save