From a6c1a3addaf70915a44d92df8d6378e1e12529cc Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 13 Feb 2012 11:44:29 +0100 Subject: /bin/grep --> grep --- git_hooks/pre-commit/copyrightyear_check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git_hooks/pre-commit/copyrightyear_check') diff --git a/git_hooks/pre-commit/copyrightyear_check b/git_hooks/pre-commit/copyrightyear_check index 43c97d0c..a489e1e8 100755 --- a/git_hooks/pre-commit/copyrightyear_check +++ b/git_hooks/pre-commit/copyrightyear_check @@ -41,10 +41,10 @@ case "${1}" in echo "Check the files that are being committed for a copyright with a proper year." ;; * ) - for file in `git diff-index --cached --name-only HEAD | /bin/grep \.h$` ; do + for file in `git diff-index --cached --name-only HEAD | grep \.h$` ; do test_file "${file}" done - for file in `git diff-index --cached --name-only HEAD | /bin/grep \.cpp$` ; do + for file in `git diff-index --cached --name-only HEAD | grep \.cpp$` ; do test_file "${file}" done ;; -- cgit v1.2.1