From d89bb1bd18ef95ec009a181918c94b528d54155a Mon Sep 17 00:00:00 2001 From: Fredrik Aslund Date: Wed, 1 Oct 2014 08:20:26 +0200 Subject: its-utv03.ad.umu.se added, HEI+RE SWAMIDOPS-7362 --- scripts/get-metadata.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/get-metadata.sh') 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" -- cgit v1.2.3