6e61398c83
The pre-push hook uses sh but contained syntax that is only supported by
bash. `=` in sh should be used instead of `==` to check for string
equality. Before this change, we were getting the following error when
pushing to any branch:
```
git push
husky > pre-push (node v10.22.1)
./bin/pre-push.sh: 7: [: refs/heads/master: unexpected operator
```
This error didn't block the push, but meant that the message asking
developers to confirm if they wanted to push to master was never
displayed. This problem was introduced in commit
|
||
---|---|---|
.. | ||
build-zip.sh | ||
contributors.sh | ||
package-update-textdomain.js | ||
package-update.sh | ||
post-merge.sh | ||
pre-push.sh |