summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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`"