diff options
Diffstat (limited to 'contrib/check_GNU_style.sh')
-rwxr-xr-x | contrib/check_GNU_style.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/check_GNU_style.sh b/contrib/check_GNU_style.sh index eeff48f8c4c..2c4d9e24fe6 100755 --- a/contrib/check_GNU_style.sh +++ b/contrib/check_GNU_style.sh @@ -39,6 +39,13 @@ test $# -eq 0 && usage nfiles=$# files="$*" +for f in $files; do + if [ "$f" != "-" ] && [ ! -f "$f" ]; then + echo "error: could not read file: $f" + exit 1 + fi +done + inp=check_GNU_style.inp tmp=check_GNU_style.tmp |