Skip to content

Commit

Permalink
fix(checkout): changed post-checkout hook to warning, fixes #87
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed May 9, 2016
1 parent c25eaf5 commit dc14e86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hooks/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

DIRECTORY="./node_modules"
if [ ! -d "$DIRECTORY" ]; then
echo "Cannot find node_modules folder, please run 'npm install' first"
exit -1
echo "WARNING: Cannot find node_modules folder, please run 'npm install' first"
fi

./node_modules/.bin/post-checkout "$@"
if [ -d "$DIRECTORY" ]; then
./node_modules/.bin/post-checkout "$@"
fi

0 comments on commit dc14e86

Please sign in to comment.