This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Construct a request URL per the MDQ Protocol specification | |
| # See: https://github.com/iay/md-query | |
| # To construct a reference to ALL entities served by the | |
| # metadata query server, simply omit the second argument | |
| construct_mdq_url () { | |
| # construct_mdq_url <base_url> <url_encoded_id> | |
| # make sure there are one or two command-line arguments | |
| if [ $# -lt 1 -o $# -gt 2 ]; then | |
| echo "ERROR: $FUNCNAME: incorrect number of arguments: $# (1 or 2 required)" >&2 |
NewerOlder