diff --git a/test-corpus.sh b/test-corpus.sh index 078391b..e929b29 100755 --- a/test-corpus.sh +++ b/test-corpus.sh @@ -12,11 +12,11 @@ # ./test-corpus.sh DIRECTORY # -if test $# = 1; then +if test $# = 0; then echo "Usage: ./test-corpus.sh DIRECTORY" exit 1 fi for file in $(find "$@" -name \*.pdf -print); do - ./testpdfio $file 2>$file.log || echo $file + ./testpdfio $file 2>&1 >$file.log || echo $file done