Fix bash logic in action step (#3474)

This commit is contained in:
Barret Schloerke
2021-08-02 22:35:11 -04:00
committed by GitHub
parent 7600770a6e
commit a6f02cf214

View File

@@ -159,7 +159,7 @@ jobs:
if: github.event_name == 'push'
run: |
# Can't push to a protected branch
if [ -n "`git cherry origin/master`"]; then
if [ -n "`git cherry origin/master`" ]; then
echo "Un-pushed commits:"
git cherry -v origin/master
echo "\nCan not push to a protected branch. Exiting"