We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77bf620 commit f25888fCopy full SHA for f25888f
hook
@@ -1,4 +1,4 @@
1
-#!/bin/bash
+#!/usr/bin/env bash
2
3
HAS_NODE=`which node 2> /dev/null || which nodejs 2> /dev/null || which iojs 2> /dev/null`
4
install.js
@@ -101,7 +101,7 @@ if(os.platform() === 'win32') {
101
hookRelativeUnixPath = hookRelativeUnixPath.replace(/[\\\/]+/g, '/');
102
}
103
104
-var precommitContent = '#!/bin/bash' + os.EOL
+var precommitContent = '#!/usr/bin/env bash' + os.EOL
105
+ hookRelativeUnixPath + os.EOL
106
+ 'RESULT=$?' + os.EOL
107
+ '[ $RESULT -ne 0 ] && exit 1' + os.EOL
0 commit comments