Corrected logic when testing if exists.

This commit is contained in:
Steven Knight 2014-02-28 14:48:45 -05:00
parent 1771eec8e3
commit eef0fb484f

View File

@ -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"