From d7a557b1f8aafdf4f053685464bfe12f7a35a03c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 27 Nov 2017 23:47:44 +0100 Subject: Fix fail on subshell error. --- foaf/mkfoaf.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/foaf/mkfoaf.sh b/foaf/mkfoaf.sh index 81d3bac..d25d8e2 100755 --- a/foaf/mkfoaf.sh +++ b/foaf/mkfoaf.sh @@ -14,6 +14,7 @@ bindir=$(dirname "$0") xsltdir="$bindir" turtle2foaf() { + set -e inpath="$1" outpath="$2" [ -n "$outpath" ] || outpath=$(echo "$inpath" | perl -pe 's/\.ttl$/.rdf/ or exit 1') || exit1 "Failed resolving output RDF file from input Turtle file \"$inpath\"." @@ -27,6 +28,7 @@ turtle2foaf() { } linkedin2foaf() { + set -e inpath="$1" outpath="$2" [ -n "$outpath" ] || outfile=index.rdf && outpath="$(dirname "$inpath")/linkedin/$outfile" @@ -56,6 +58,7 @@ linkedin2foaf() { } tidyfacebookfoaf() { + set -e inpath="$1" outpath="$2" @@ -66,6 +69,7 @@ tidyfacebookfoaf() { } foafsign() { + set -e inpath="$1" outpath="${inpath}_sig.pgp" gpg -a -o- --detach-sign "$inpath" > "$outpath" -- cgit v1.2.3