[Fix #437] Always set $TMPDIR
This commit is contained in:
parent
1622abb830
commit
c9c3b40b5c
|
@ -64,10 +64,13 @@ fi
|
|||
# Temporary Files
|
||||
#
|
||||
|
||||
if [[ -d "$TMPDIR" ]]; then
|
||||
export TMPPREFIX="${TMPDIR%/}/zsh"
|
||||
if [[ ! -d "$TMPDIR" ]]; then
|
||||
export TMPDIR="/tmp/$USER"
|
||||
mkdir -p -m 700 "$TMPDIR"
|
||||
fi
|
||||
|
||||
TMPPREFIX="${TMPDIR%/}/zsh"
|
||||
if [[ ! -d "$TMPPREFIX" ]]; then
|
||||
mkdir -p "$TMPPREFIX"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue