Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
#!/bin/bash
#
-# Copyright (c) 2010, Benjamin C. Meyer <ben@meyerhome.net>
+# Copyright (c) 2010-2014, Benjamin C. Meyer <ben@meyerhome.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
function test_file {
file="${1}"
+ if [ ! -f "${file}" ] ; then
+ return
+ fi
head -n 1 "${file}" | grep 'bash' | grep '^#!/' > /dev/null
if [ "$?" -eq 0 ] ; then
set -e
#!/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.
#
function test_file {
file="${1}"
+ if [ ! -f "${file}" ] ; then
+ return
+ fi
if grep 'Copyright ' "${file}" | grep -v grep >/dev/null
then
year=`date +%Y`