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.
This commit is contained in:
parent
bf9dbfd5b9
commit
f463d1fdfa
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ fi
|
|||
#
|
||||
|
||||
if [[ ! -d "$TMPDIR" ]]; then
|
||||
export TMPDIR="/tmp/$USER"
|
||||
export TMPDIR="/tmp/`whoami`"
|
||||
mkdir -p -m 700 "$TMPDIR"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue