- [ -f "$envdir/.git/refs/heads/$name" ] || error "environment '$name' not found"
- branch="$(git-branch | grep '^\* ' | awk '{print $2}')"
- [ "$name" = "branch" ] && error "cannot delete the currently selected environment"
- git-branch -D "$name"
+ branch="$(git branch | grep '^\* ' | awk '{print $2}')"
+ [ "$name" = "$branch" ] && error "cannot delete the currently selected environment"
+ git branch -D "$name"