From 451f2e84cd441cd142c874478d7a979f9044f685 Mon Sep 17 00:00:00 2001 From: maride Date: Fri, 4 May 2018 19:57:26 +0200 Subject: [PATCH] Show results, log or pdf --- run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/run.sh b/run.sh index 1325120..caf93e0 100755 --- a/run.sh +++ b/run.sh @@ -21,6 +21,16 @@ if test "$(ls -A /tex)"; then # Build the PDF texi2pdf ../$TARGET + + if [ "$?" -eq "0" ]; then + echo "$ECHOPREFIX Created the PDF!" + echo "$NULLPREFIX Here are the results:" + ls ../$BUILD/*.pdf + else + echo "$ECHOPREFIX Build failed." + echo "$NULLPREFIX Have a look at the logs:" + ls ../$BUILD/*.log + fi else # Directory is empty echo "$ECHOPREFIX Please mount your directory to /tex"