From 611e5b6eec12f64bcbc64bd80197d0a6396abb98 Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Thu, 29 Nov 2012 15:45:26 -0300 Subject: [PATCH] Return the success check for pod2rst in write-user-docs --- util/write-user-docs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/write-user-docs b/util/write-user-docs index b1f7a870..bcde59ea 100755 --- a/util/write-user-docs +++ b/util/write-user-docs @@ -72,7 +72,11 @@ write_rst() { fi $BRANCH/util/pod2rst-fixed $file > $RST_DIR/$tool.rst - echo "Wrote $RST_DIR/$tool.rst" + if [ $? -eq 0 ]; then + echo "Wrote $RST_DIR/$tool.rst" + else + die "Error writing $RST_DIR/tool.rst" + fi } # Parse the head1 sections from percona-toolkit.pod and write them as