From: Mike Frysinger Date: Thu, 22 Dec 2016 01:33:43 +0000 (-0500) Subject: git-rewrite-authors: add sanity check for missing authors file X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5b0dff8a56cd24690b361215c982b24e62e1a137;p=home.git git-rewrite-authors: add sanity check for missing authors file --- diff --git a/.bin/git-rewrite-authors b/.bin/git-rewrite-authors index e136e59..4e4c2bf 100755 --- a/.bin/git-rewrite-authors +++ b/.bin/git-rewrite-authors @@ -22,6 +22,10 @@ for x in cvs-authors authors ; do exit 1 fi done +if [ ! -e "${author_file}" ] ; then + echo "error: could not find ${author_file}" + exit 1 +fi git filter-branch \ --env-filter ". ${tmp};"' \ eval `decode "${GIT_AUTHOR_NAME}" AUTHOR`; \