aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgendocs.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/gendocs.sh b/gendocs.sh
index 078fb95f..a0f6e5c6 100755
--- a/gendocs.sh
+++ b/gendocs.sh
@@ -57,7 +57,9 @@ if [ "$DO_ACTION" = "pdf" -o "$DO_ACTION" = "serve" ]; then
[ "$?" = "1" ] && { echo "You must install calibre first, using: 'sudo apt install calibre' or refer to https://calibre-ebook.com/download"; exit 1; }
if [ "$DO_ACTION" = "pdf" ]; then
- $DRY $GITBOOK pdf $ROOTDIR $OUT_DIR/LowLevelCanBinding_Guide.pdf $DEBUG_FLAG
+ OUTFILE=$OUT_DIR/LowLevelCanBinding_Guide.pdf
+ $DRY $GITBOOK pdf $ROOTDIR $OUTFILE $DEBUG_FLAG
+ [ "$?" = "0" ] && echo "PDF has been successfully generated in $OUTFILE"
else
$DRY $GITBOOK serve $DEBUG_FLAG
fi