Skip to content

Commit

Permalink
Use /usr/bin/env to locate bash for commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Jan 13, 2016
1 parent 26ec262 commit c030be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plone/recipe/codeanalysis/__init__.py
Expand Up @@ -178,7 +178,7 @@ def install_pre_commit_hook(self):
os.mkdir(git_hooks_directory)

with open(git_hooks_directory + '/pre-commit', 'w') as output_file:
output_file.write('#!/bin/bash\nbin/code-analysis')
output_file.write('#!/usr/bin/env bash\nbin/code-analysis')
subprocess.call([
'chmod',
'775',
Expand Down

0 comments on commit c030be7

Please sign in to comment.