aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-02-20 23:50:13 +0100
committerTeddy Wing2018-02-20 23:50:13 +0100
commit6dd6f1a8c83edebe7d6bd2264d5fc9963a0991e2 (patch)
tree9c9edf12e12ea70552772070015da39f16322461
parent121101f5bb5d95f1d70379c6b2be592e03b133a8 (diff)
downloadgit-branch-list-6dd6f1a8c83edebe7d6bd2264d5fc9963a0991e2.tar.bz2
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.
-rwxr-xr-xgit-branch-list1
1 files changed, 1 insertions, 0 deletions
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 () {