Skip to content

Instantly share code, notes, and snippets.

@mzstic
Created October 31, 2017 09:51
Show Gist options
  • Save mzstic/19cce15bab6c368c0c78eb23eead8c81 to your computer and use it in GitHub Desktop.
Save mzstic/19cce15bab6c368c0c78eb23eead8c81 to your computer and use it in GitHub Desktop.
Post update + pos install code check
"scripts": {
"post-update-cmd": [
"[ -d .git ] && cp pre-commit-check.sh .git/hooks/pre-commit; exit 0;"
],
"post-install-cmd": [
"[ -d .git ] && cp pre-commit-check.sh .git/hooks/pre-commit; exit 0;"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment