From 71425672d2cd1bdb8b08c7b2eb983fdfc0008cf8 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Tue, 18 Jun 2019 22:25:13 +0200 Subject: [PATCH] Don't say both that the PDF file is inexistant and empty --- git-latexdiff | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/git-latexdiff b/git-latexdiff index 06e4de4..20745eb 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -737,9 +737,7 @@ pdffile="$builddir/$mainbase".pdf if test ! -r "$pdffile" ; then echo "No PDF file generated." compile_error=1 -fi - -if test ! -s "$pdffile" ; then +elif test ! -s "$pdffile" ; then echo "PDF file generated is empty." compile_error=1 fi