You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any ' in the script will cause the JSON parser to fail.
package.json
{"pre-push#production": ["pre-push"],"scripts": {"pre-push": "echo \"don't push to production, open a pull request\"; exit 1"}}
shell
git:(production) > git push
running pre-push...failed!
.git/hooks/pre-push: eval: line 235: unexpected EOF while looking for matching `''
.git/hooks/pre-push: eval: line 236: syntax error: unexpected end of file
The text was updated successfully, but these errors were encountered:
Any
'
in the script will cause the JSON parser to fail.package.json
shell
The text was updated successfully, but these errors were encountered: