File tree Expand file tree Collapse file tree 6 files changed +30
-1
lines changed Expand file tree Collapse file tree 6 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ if [ ! -d "$DIRECTORY" ]; then
66 exit -1
77fi
88
9+ if [ ! -x " $( command -v node) " ]; then
10+ echo " Node binary not found, please ensure it has been properly installed"
11+ exit -1
12+ fi
13+
914./node_modules/.bin/commit-msg " $@ "
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ if [ ! -d "$DIRECTORY" ]; then
55 echo " WARNING: Cannot find node_modules folder, please run 'npm install' first"
66fi
77
8- if [ -d " $DIRECTORY " ]; then
8+ if [ ! -x " $( command -v node) " ]; then
9+ echo " WARNING: Node binary not found, please ensure it has been properly installed"
10+ fi
11+
12+ if [ -d " $DIRECTORY " ] && [ -x " $( command -v node) " ]; then
913 ./node_modules/.bin/post-checkout " $@ "
1014fi
Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ if [ ! -d "$DIRECTORY" ]; then
66 exit -1
77fi
88
9+ if [ ! -x " $( command -v node) " ]; then
10+ echo " Node binary not found, please ensure it has been properly installed"
11+ exit -1
12+ fi
13+
914./node_modules/.bin/post-commit " $@ "
Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ if [ ! -d "$DIRECTORY" ]; then
66 exit -1
77fi
88
9+ if [ ! -x " $( command -v node) " ]; then
10+ echo " Node binary not found, please ensure it has been properly installed"
11+ exit -1
12+ fi
13+
914./node_modules/.bin/post-merge " $@ "
Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ if [ ! -d "$DIRECTORY" ]; then
66 exit -1
77fi
88
9+ if [ ! -x " $( command -v node) " ]; then
10+ echo " Node binary not found, please ensure it has been properly installed"
11+ exit -1
12+ fi
13+
914./node_modules/.bin/pre-commit " $@ "
Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ if [ ! -d "$DIRECTORY" ]; then
66 exit -1
77fi
88
9+ if [ ! -x " $( command -v node) " ]; then
10+ echo " Node binary not found, please ensure it has been properly installed"
11+ exit -1
12+ fi
13+
914./node_modules/.bin/pre-push " $@ "
You can’t perform that action at this time.
0 commit comments