diff options
Diffstat (limited to 'contrib/pre-commit/copyright_year')
-rwxr-xr-x | contrib/pre-commit/copyright_year | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/pre-commit/copyright_year b/contrib/pre-commit/copyright_year index 514d032..8f094d0 100755 --- a/contrib/pre-commit/copyright_year +++ b/contrib/pre-commit/copyright_year @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (c) 2010, Benjamin C. Meyer <ben@meyerhome.net> +# Copyright (c) 2010-2014, Benjamin C. Meyer <ben@meyerhome.net> # Copyright (c) 2013, Phil Black-Knight <pblack88@gmail.com> # All rights reserved. # @@ -29,6 +29,9 @@ function test_file { file="${1}" + if [ ! -f "${file}" ] ; then + return + fi if grep 'Copyright ' "${file}" | grep -v grep >/dev/null then year=`date +%Y` |