summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Åslund <fredrik.aslund@umu.se>2013-08-23 11:45:19 +0200
committerFredrik Åslund <fredrik.aslund@umu.se>2013-08-23 11:45:19 +0200
commit7a2f172dda87df9aa206fbc56ae8a5db7d2c67b9 (patch)
treeb395b2c295c6d0c797ecd2cc262c57e83d5fb372
parent4e72cd73bb17da68b0af49f3a3ab8f52d43fc129 (diff)
"->'"
-rwxr-xr-xscripts/get-metadata.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get-metadata.sh b/scripts/get-metadata.sh
index f967872c..d47acfa5 100755
--- a/scripts/get-metadata.sh
+++ b/scripts/get-metadata.sh
@@ -23,7 +23,7 @@ fi
metadata=`curl -s -k -f $metadataurl`
[ -n "$metadata" ] || error "Failed to fetch metadata from $metadataurl"
-entityid=`echo "$metadata" | sed -n 's/.*entityID="\([^"]*\)".*/\1/p'`
+entityid=`echo "$metadata" | sed -n 's/.*entityID=['\''"]\([^"]*\)['\''"].*/\1/p'`
[ -n "$entityid" ] || error "Failed to find entityID in metadata"
[ "`echo "$entityid" | wc -l`" = "1" ] || error "Multiple entityid:s found: `echo $entityid`"