diff options
author | Fredrik Domeij <fredrik.domeij@umu.se> | 2017-02-09 13:30:00 +0100 |
---|---|---|
committer | Fredrik Domeij <fredrik.domeij@umu.se> | 2017-02-09 13:30:00 +0100 |
commit | 4e5b8a7ad513a3361f4254003b653c79f0a43e9d (patch) | |
tree | 92dd595a4bc919281932f6b61fff3176cd8b9513 /scripts/get-metadata.sh | |
parent | ef725d3e63a989a9aa494c7e1def49609ccf74d1 (diff) |
typo
Diffstat (limited to 'scripts/get-metadata.sh')
-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 509b0d2b..88938b61 100755 --- a/scripts/get-metadata.sh +++ b/scripts/get-metadata.sh @@ -43,7 +43,7 @@ fi 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`" +[ `echo "$entityid" | wc -l` = 1 ] || error "Multiple entityid:s found: `echo $entityid`" entityidfn=`echo "$entityid" | sed 's;https*://;;' | tr 'A-Z' 'a-z' | sed 's;/$;;' | sed 's/[^a-z0-9_.-]/-/g' | sed 's/\.xml$//;s/$/.xml/'` [ -n "$entityidfn" ] || error "Failed to generate filename from entityid $entityid" |