diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get-metadata.sh | 2 |
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`" |