Skip to content

Commit

Permalink
Use git branch --list
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Feb 7, 2021
1 parent 53438d5 commit 7507738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ _switch_to_branch() {
# If not create one


if [ -n "$(git branch | grep $INPUT_BRANCH)" ]
if [ -n "$(git branch --list $INPUT_BRANCH)" ]
then

# Switch to branch from current Workflow run
Expand Down

0 comments on commit 7507738

Please sign in to comment.