File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,15 @@ function git_clean_merged_branches() {
125125 fi
126126
127127 # Bestätigung anzeigen
128- gum confirm --default=no " Möchtest du den Branch '$branch ' wirklich löschen?" && {
128+ if gum confirm --default=no " Möchtest du den Branch '$branch ' wirklich löschen?" ; then
129129 # Branch löschen
130130 git branch -d " $branch " && echo " Branch '$branch ' wurde gelöscht."
131131 # Aktualisierte Liste der Branches
132132 branches=$( git branch --merged | grep -vE " \*|main|master" )
133133 [ -z " $branches " ] && echo " Keine weiteren gemergten Branches." && keep_asking=false
134- } || echo " Branch '$branch ' wurde nicht gelöscht."
134+ else
135+ echo " Branch '$branch ' wurde nicht gelöscht."
136+ fi
135137 done
136138}
137139export -f git_clean_merged_branches
You can’t perform that action at this time.
0 commit comments