From eef0fb484fbe7dde5371c596ef4f6f16e528481e Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Fri, 28 Feb 2014 14:48:45 -0500 Subject: [PATCH] Corrected logic when testing if exists. --- plugins/archlinux/pacman/pacdisowned.fish | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/archlinux/pacman/pacdisowned.fish b/plugins/archlinux/pacman/pacdisowned.fish index 4b851f1..2f0f012 100644 --- a/plugins/archlinux/pacman/pacdisowned.fish +++ b/plugins/archlinux/pacman/pacdisowned.fish @@ -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"