Auto-fix missing trailing newline

This commit is contained in:
Reid 'arrdem' McKenzie 2018-04-29 18:27:01 -07:00
parent 9d277e5aec
commit dd84276d42

View file

@ -12,6 +12,7 @@ function _goto_file {
};
function _make_label {
sed -i '' -e '$a\' `_goto_file` # Fix potentially missing last newline
printf '%s %s\n' "$1" $(echo "$2" | sed "s^$HOME^^g") >> `_goto_file`
};