Show results, log or pdf
This commit is contained in:
parent
8cf24ca319
commit
451f2e84cd
10
run.sh
10
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"
|
||||
|
Loading…
Reference in New Issue
Block a user