diff --git a/README.md b/README.md index 36062b5..b701793 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ xml_location=http://md.incommon.org/InCommon/InCommon-metadata.xml resource_url=https://incommon.org/federation/metadata/all_IdP_DisplayNames.csv ``` -Suppose there is an automated process that transforms the SAML metadata at ``xml_location`` into the CSV file at ``resource_url``. Specifically, let's suppose the following process runs every hour on www.incommon.org: +Suppose there is an automated process that transforms the SAML metadata at ``xml_location`` into the CSV file at ``resource_url``. Specifically, let's suppose the following process runs every hour on incommon.org: ```Shell # the XSL script and the shell script are included in the md-transforms repository @@ -78,7 +78,8 @@ xsl_file=$LIB_DIR/list_all_IdP_DisplayNames_csv.xsl resource_file=/tmp/all_IdP_DisplayNames.csv $BIN_DIR/http_xsltproc.sh -F -o "$resource_file" "$xsl_file" "$xml_location" exit_code=$? -if [ $exit_code -ne 0 ]; then +[ $exit_code -eq 1 ] && exit 0 # short-circuit if 304 response +if [ $exit_code -gt 1 ]; then echo "ERROR: http_xsltproc.sh failed with status code: $exit_code" >&2 exit $exit_code fi