Skip to content

Commit

Permalink
Fixed wrong condition on current branch for doc building
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed Dec 5, 2022
1 parent 65df679 commit 49e30c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ branch=$(git rev-parse --abbrev-ref HEAD)

echo Current branch: $branch

if [[ "$branch" -ne "main" ]]; then
if [[ "$branch" != "main" ]]; then
echo "Branch is not main, exiting."
exit 0
fi
Expand Down

0 comments on commit 49e30c4

Please sign in to comment.