Show results, log or pdf

This commit is contained in:
maride 2018-05-04 19:57:26 +02:00
parent 8cf24ca319
commit 451f2e84cd

10
run.sh
View File

@ -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"