1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-06 03:39:26 +00:00

[Fix #514] Use /tmp when $TMPDIR is undefined

This commit is contained in:
Sorin Ionescu
2014-01-03 14:20:32 -05:00
parent aefdce3fc3
commit 57b283facd
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ fi
# Set the default paths to gpg-agent files.
_gpg_agent_conf="$HOME/.gnupg/gpg-agent.conf"
_gpg_agent_env="$TMPDIR/gpg-agent.env"
_gpg_agent_env="${TMPDIR:-/tmp}/gpg-agent.env"
# Start gpg-agent if not started.
if ! ps -U "$USER" -o ucomm | grep -q gpg-agent; then