Skip to content

Commit f25888f

Browse files
tassmjau3rd-Eden
authored andcommitted
Change shebang to #!/usr/bin/env bash for better portability (#105)
1 parent 77bf620 commit f25888f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
HAS_NODE=`which node 2> /dev/null || which nodejs 2> /dev/null || which iojs 2> /dev/null`
44

install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if(os.platform() === 'win32') {
101101
hookRelativeUnixPath = hookRelativeUnixPath.replace(/[\\\/]+/g, '/');
102102
}
103103

104-
var precommitContent = '#!/bin/bash' + os.EOL
104+
var precommitContent = '#!/usr/bin/env bash' + os.EOL
105105
+ hookRelativeUnixPath + os.EOL
106106
+ 'RESULT=$?' + os.EOL
107107
+ '[ $RESULT -ne 0 ] && exit 1' + os.EOL

0 commit comments

Comments
 (0)