diff options
-rw-r--r-- | share/functions/funced.fish | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/functions/funced.fish b/share/functions/funced.fish index 14cb0d70..fd3060a7 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -124,8 +124,7 @@ function funced --description 'Edit function definition' break end set -l stat $status - # Only forcibly delete files to limit possible damage is tmpdir is set to something weird - rm -f $tmpname >/dev/null - rm -r $tmpdir >/dev/null + rm $tmpname >/dev/null + and rmdir $tmpdir >/dev/null return $stat end |