Commit 266512f5 authored by Bruno Pinto's avatar Bruno Pinto

tmpdir is local

parent f5e7eacb
...@@ -13,11 +13,11 @@ function backup_function ...@@ -13,11 +13,11 @@ function backup_function
end end
function _create_tmpname function _create_tmpname
set -l TMPDIR /tmp set -l tmpdir /tmp
set -g tmpname (printf "$TMPDIR/fish_funced_%d_%d.fish" %self (random)) set -g tmpname (printf "$tmpdir/fish_funced_%d_%d.fish" %self (random))
while test -f $tmpname while test -f $tmpname
set -g tmpname (printf "$TMPDIR/fish_funced_%d_%d.fish" %self (random)) set -g tmpname (printf "$tmpdir/fish_funced_%d_%d.fish" %self (random))
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment