1
Fork 0

only check files that still exist

This commit is contained in:
Dustin J. Mitchell 2013-11-28 13:48:57 -05:00
parent 520606580c
commit ff35289761
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ trap 'rm -f ${tempfile}' 1 2 3 15
git diff --name-only $REVRANGE | grep '\.py$' | grep -v '\(^master/\(contrib\|docs\)\|/setup\.py\)' > ${tempfile}
py_files=()
while read line; do
py_files+=($line)
if test -f "${line}"; then
py_files+=($line)
fi
done < ${tempfile}
echo "${MAGENTA}Validating the following commits:${NORM}"