summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFredrik Aslund <fredrik.aslund@umu.se>2014-10-01 08:20:26 +0200
committerFredrik Aslund <fredrik.aslund@umu.se>2014-10-01 08:20:26 +0200
commitd89bb1bd18ef95ec009a181918c94b528d54155a (patch)
treefba474c62724e4c3eb74e6ecda9fd716ebac4446 /scripts
parentf29ded97ab953912ed3bd5d4114d6951480c8e02 (diff)
its-utv03.ad.umu.se added, HEI+RE
SWAMIDOPS-7362
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"