From 6dd6f1a8c83edebe7d6bd2264d5fc9963a0991e2 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 20 Feb 2018 23:50:13 +0100 Subject: git-branch-list(drop_branch): Remove `sed` backup file We don't really care about this backup file, so once the `sed` operation is finished, remove it. --- git-branch-list | 1 + 1 file changed, 1 insertion(+) diff --git a/git-branch-list b/git-branch-list index 26098e4..167bad4 100755 --- a/git-branch-list +++ b/git-branch-list @@ -42,6 +42,7 @@ function drop_branch () { fi sed -i '.bak' "/$branch/d" "$DATABASE" + rm "${DATABASE}.bak" } function list_branches () { -- cgit v1.2.3