Skip to content

Instantly share code, notes, and snippets.

@jpcercal
Created July 6, 2015 12:32
Show Gist options
  • Select an option

  • Save jpcercal/72007391b4cdc67ad3e4 to your computer and use it in GitHub Desktop.

Select an option

Save jpcercal/72007391b4cdc67ad3e4 to your computer and use it in GitHub Desktop.
Composer PostInstallCmd
#!/usr/bin/env bash
BASE_PROJECT_DIR=`pwd`
rm $BASE_PROJECT_DIR/.git/hooks/pre-commit 2> /dev/null
ln -s $BASE_PROJECT_DIR/bin/git/hooks/pre-commit $BASE_PROJECT_DIR/.git/hooks/pre-commit
chmod +x $BASE_PROJECT_DIR/.git/hooks/pre-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment