Skip to content

Commit 37b1db3

Browse files
committed
Add simple sanity check to script
1 parent f3c760b commit 37b1db3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

documentation/create_pdf.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

33
echo "Removing previous PDF"
4-
rm proteus_doc.pdf
4+
if [ -f proteus_doc.pdf ]; then
5+
rm proteus_doc.pdf
6+
fi
57

68
echo "Creating new PDF"
79
fop -xml proteus_doc.xml -xsl xsl/proteus_pdf.xsl -pdf proteus_doc.pdf

0 commit comments

Comments
 (0)