aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/git-branch-cleanup5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/git-branch-cleanup b/.local/bin/git-branch-cleanup
index 5e86714..555ac0c 100755
--- a/.local/bin/git-branch-cleanup
+++ b/.local/bin/git-branch-cleanup
@@ -1,4 +1,4 @@
-#! /usr/bin/env sh
+#!/bin/sh
main()
{
@@ -16,6 +16,7 @@ main()
git branch --merged \
| awk '{ print $NF }' \
| grep -Ev "^master$" \
+ | grep -Ev "^main$" \
> "$buffer"
count=$(wc -l < "$buffer")
@@ -30,7 +31,7 @@ main()
cat -- "$buffer"
printf "\n^C to cancel...\n"
- read
+ read _
while read -r branch
do