Better error handling, closes #88

This commit is contained in:
Erwan Rouchet 2021-09-28 08:40:21 +02:00
parent ed5e3d1806
commit aa26c36bc9
No known key found for this signature in database
GPG Key ID: FF629EE969FFE294
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,7 @@
<xsl:template match="/">
<xsl:text><![CDATA[#!/bin/bash
set -o pipefail
function usage {
echo "Usage: $0 [-d BASE_DIR] [-q]"
@ -244,6 +245,11 @@ fi
<xsl:value-of select="text()" />
<xsl:text>.new $DIR/feeds/</xsl:text>
<xsl:value-of select="text()" />
<xsl:text> \
|| echo Failed building </xsl:text>
<xsl:value-of select="../@id" />
<xsl:text> feed to $DIR/feeds/</xsl:text>
<xsl:value-of select="text()" />
<xsl:text>
</xsl:text>