Auto-fix missing trailing newline
This commit is contained in:
parent
9d277e5aec
commit
dd84276d42
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ function _goto_file {
|
||||||
};
|
};
|
||||||
|
|
||||||
function _make_label {
|
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`
|
printf '%s %s\n' "$1" $(echo "$2" | sed "s^$HOME^^g") >> `_goto_file`
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue