diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get-metadata.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/get-metadata.sh b/scripts/get-metadata.sh index 2fc0b136..d7275d0d 100755 --- a/scripts/get-metadata.sh +++ b/scripts/get-metadata.sh @@ -22,13 +22,13 @@ EOF fi if echo "$metadataurl" | grep -qE '^http://|^https://' ; then - metadata=`curl -s -k -f $metadataurl` + metadata=`curl -s -k -f "$metadataurl"` elif echo "$metadataurl" | grep -qE '^reep:' ; then - id=`echo -n $metadataurl | sed 's/^reep://' | sha1sum | awk '{print $1}'` + id=`echo -n "$metadataurl" | sed 's/^reep://' | sha1sum | awk '{print $1}'` metadataurl="http://md.reep.refeds.org/entities/%7Bsha1%7D$id" - metadata=`curl -s -k -f $metadataurl` + metadata=`curl -s -k -f "$metadataurl"` else - metadata=`cat $metadataurl` + metadata=`cat "$metadataurl"` fi [ -n "$metadata" ] || error "Failed to fetch metadata from $metadataurl" |