Set $TMPPREFIX only when $TMPDIR is set
This commit is contained in:
parent
227043938f
commit
e8226dfaf3
|
@ -94,8 +94,10 @@ unset path_file
|
||||||
# Temporary Files
|
# Temporary Files
|
||||||
#
|
#
|
||||||
|
|
||||||
export TMPPREFIX="${TMPDIR%/}/zsh"
|
if [[ -d "$TMPDIR" ]]; then
|
||||||
if [[ ! -d "$TMPPREFIX" ]]; then
|
export TMPPREFIX="${TMPDIR%/}/zsh"
|
||||||
mkdir -p "$TMPPREFIX"
|
if [[ ! -d "$TMPPREFIX" ]]; then
|
||||||
|
mkdir -p "$TMPPREFIX"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue