summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2014-10-02 09:15:22 +0200
committerLeif Johansson <leifj@sunet.se>2014-10-02 09:15:22 +0200
commit5891d468a96a875e2fddce64424eb298e2c0ec62 (patch)
treea09559fc99f4b9c8f8bb1186eed131f1e4c9e27e /scripts
parent5f55d1b9404119eb0be846814fb698ffec4028ec (diff)
parentd89bb1bd18ef95ec009a181918c94b528d54155a (diff)
Merge branch 'master' of md-master.swamid.se:swamid-metadata
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get-metadata.sh8
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"