modified switch-branch-or-facet.sh