From 600bd81f37a059c4a16eb48fa8838750bea48e5a Mon Sep 17 00:00:00 2001 From: Benjamin C Meyer Date: Sun, 20 Oct 2013 22:10:39 -0400 Subject: Use /usr/bin/env in generated hook scripts Signed-off-by: Benjamin C Meyer --- git-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks b/git-hooks index dd9615b..9191506 100755 --- a/git-hooks +++ b/git-hooks @@ -102,7 +102,7 @@ function install_hooks cd hooks for file in applypatch-msg commit-msg post-applypatch post-checkout post-commit post-merge post-receive pre-applypatch pre-auto-gc pre-commit prepare-commit-msg pre-rebase pre-receive update pre-push do - echo '#!/bin/bash + echo '#!/usr/bin/env bash git-hooks run "$0" "$@"' > "${file}" chmod +x "${file}" done -- cgit v1.2.3