commit 031f09cb9ea7b3dae393b79b084d7627a30b0a9a
parent 35c5863319aef1bb74ea224bbfd301ace7bde5c2
Author: regexghost <dev@regexghost.com>
Date: Mon, 15 Jun 2026 21:20:08 +0100
fixed duplicate newlines on every edit
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bug.sh b/bug.sh
@@ -39,7 +39,7 @@ priorNameToNum () {
}
trim () {
- sed 's/^ //g; s/ $//g'
+ sed 's/^ //g; s/ $//g' | sed 's/\(\\n\)*$//g'
}
updateCurID () {
@@ -113,7 +113,6 @@ edit () {
id=$(selectEntry)
[ "$?" = "0" ] || exit
lineToFile $id
- echo A:$id:B
"${VISUAL:-${EDITOR:-vi}}" /tmp/bug_todo_temp
updatedLine="$(fileToLine /tmp/bug_todo_temp)"
delLine "$id" "$BUG_PROJECT"