Skip to content

Commit

Permalink
Merge pull request #1 from bjornjohansen/master
Browse files Browse the repository at this point in the history
Two fixes in the setup.sh file
  • Loading branch information
stanma committed Dec 15, 2017
2 parents cdd76df + 465a53c commit fd66003
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ else
PRE_COMMIT_EXISTS=0
fi

cp ./vendor/wickedreports/phpcs-pre-commit-hook/src/pre-commit .git/hooks/pre-commit
if [ ! -d .git/hooks ]; then
mkdir -p .git/hooks
fi

cp ./vendor/wickedreports/phpcs-git-pre-commit/src/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

if [ "$PRE_COMMIT_EXISTS" = 0 ];
then
echo "Pre-commit git hook is installed!"
else
echo "Pre-commit git hook is updated!"
fi
fi

0 comments on commit fd66003

Please sign in to comment.