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"