diff options
author | Fredrik Åslund <fredrik.aslund@umu.se> | 2013-08-23 11:45:19 +0200 |
---|---|---|
committer | Fredrik Åslund <fredrik.aslund@umu.se> | 2013-08-23 11:45:19 +0200 |
commit | 7a2f172dda87df9aa206fbc56ae8a5db7d2c67b9 (patch) | |
tree | b395b2c295c6d0c797ecd2cc262c57e83d5fb372 | |
parent | 4e72cd73bb17da68b0af49f3a3ab8f52d43fc129 (diff) |
"->'"
-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`" |