git-delete-branch: Changed logic from and to or in both
This commit is contained in:
parent
6bc94e1518
commit
b044d7a9b3
@ -19,7 +19,10 @@ while true; do
|
|||||||
read -p "Select branch to remove: " BRANCH
|
read -p "Select branch to remove: " BRANCH
|
||||||
read -p "Remove locally / remote / both [L/R/B]: " CHOOSE
|
read -p "Remove locally / remote / both [L/R/B]: " CHOOSE
|
||||||
case $CHOOSE in
|
case $CHOOSE in
|
||||||
[Bb]* ) delete_local_branch "$BRANCH" && delete_remote_branch "$BRANCH" ;;
|
[Bb]*)
|
||||||
|
delete_local_branch "$BRANCH"
|
||||||
|
delete_remote_branch "$BRANCH"
|
||||||
|
;;
|
||||||
[Ll]*) delete_local_branch "$BRANCH" ;;
|
[Ll]*) delete_local_branch "$BRANCH" ;;
|
||||||
[Rr]*) delete_remote_branch "$BRANCH" ;;
|
[Rr]*) delete_remote_branch "$BRANCH" ;;
|
||||||
*) echo "Please write good answer" ;;
|
*) echo "Please write good answer" ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user