funcsave: add missing newlines

This commit is contained in:
Aaron Gyes 2021-09-28 22:22:21 -07:00
parent 3fd2da951e
commit a5978eade4

View file

@ -29,10 +29,10 @@ function funcsave --description "Save the current definition of all specified fu
set -l funcpath "$funcdir/$funcname.fish"
if functions -q -- $funcname
functions --no-details -- $funcname >$funcpath
and set -q _flag_quiet || printf (_ "%s: wrote %s") funcsave $funcpath
and set -q _flag_quiet || printf (_ "%s: wrote %s\n") funcsave $funcpath
else if [ -w $funcpath ]
rm $funcpath
and set -q _flag_quiet || printf (_ "%s: removed %s") funcsave $funcpath
and set -q _flag_quiet || printf (_ "%s: removed %s\n") funcsave $funcpath
else
printf (_ "%s: Unknown function '%s'\n") funcsave $funcname >&2
set retval 1