mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
Corrected logic when testing if exists.
This commit is contained in:
parent
1771eec8e3
commit
eef0fb484f
@ -1,10 +1,9 @@
|
||||
function pacdisowned -d "Display list of disowned files"
|
||||
if test -d $TMPDIR
|
||||
set tmp "/tmp"
|
||||
else
|
||||
if test -d "$TMPDIR"
|
||||
set tmp $TMPDIR
|
||||
else
|
||||
set tmp "/tmp"
|
||||
end
|
||||
|
||||
set dir (mktemp -d -p $tmp)
|
||||
|
||||
set -l fs "$dir/fs"
|
||||
|
Loading…
Reference in New Issue
Block a user