mirror of
https://github.com/tmux-plugins/tmux-cpu.git
synced 2026-09-10 07:16:16 -04:00
safer tmpdir
may fix cygwin/osx
This commit is contained in:
parent
b8d75f6000
commit
dd6a8c4c2b
|
|
@ -64,7 +64,9 @@ command_exists() {
|
|||
}
|
||||
|
||||
get_tmp_dir() {
|
||||
echo "${TMPDIR:-/tmp}/tmux-$EUID-cpu"
|
||||
local tmpdir="${TMPDIR:-${TMP:-${TEMP:-/tmp}}}"
|
||||
[ -d "$tmpdir" ] || local tmpdir=~/tmp
|
||||
echo "$tmpdir/tmux-$EUID-cpu"
|
||||
}
|
||||
|
||||
get_time() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue