Skip to content

Commit

Permalink
adjust exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo authored Oct 30, 2016
1 parent 73a3d27 commit 373fd89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ fi
# resource_dir is the target web directory for web resources
resource_dir=/home/htdocs/www.incommonfederation.org/federation/metadata/
mv $resource_file $resource_dir
exit 0
```

Observe that the command ``http_xsltproc.sh -F`` forces a fresh SAML metadata file. If the server responds with ``304 Not Modified``, the process terminates without updating the resource file.
Expand Down Expand Up @@ -122,14 +121,13 @@ fi
# resource_dir is the target web directory for web resources
resource_dir=/home/htdocs/www.incommonfederation.org/federation/metadata/
mv $resource1_file $resource2_file $resource_dir
exit 0
```

Observe the commands ``http_xsltproc.sh -F`` and ``http_xsltproc.sh -C``. The former forces a fresh SAML metadata file as in the previous example; the latter goes directly to cache. If file is not in the cache (which is highly unlikely), the process terminates without updating any resource files.

### Example #3

This example is very similar to previous example. Consider the following URLs:
This example is very similar to the previous example. Consider the following URLs:

```Shell
xml_location=http://md.incommon.org/InCommon/InCommon-metadata-export.xml
Expand Down Expand Up @@ -165,7 +163,6 @@ fi
# resource_dir is the target web directory for web resources
resource_dir=/home/htdocs/www.incommonfederation.org/federation/metadata/
mv $resource1_file $resource2_file $resource_dir
exit 0
```

The commands ``http_xsltproc.sh -F`` and ``http_xsltproc.sh -C`` behave exactly as described in the previous example.
Expand Down

0 comments on commit 373fd89

Please sign in to comment.