UNPKG

320 BPlain TextView Raw
1#!/bin/sh
2
3DIRECTORY="./node_modules"
4if [ ! -d "$DIRECTORY" ]; then
5 echo "Cannot find node_modules folder, please run 'npm install' first"
6 exit -1
7fi
8
9if [ ! -x "$(command -v node)" ]; then
10 echo "Node binary not found, please ensure it has been properly installed"
11 exit -1
12fi
13
14./node_modules/.bin/pre-push "$@"