summaryrefslogtreecommitdiff
path: root/scripts/get-metadata.sh
diff options
context:
space:
mode:
authorBjörn Mattsson <Bjorn.Mattsson@bth.se>2020-11-13 10:36:55 +0100
committerBjörn Mattsson <Bjorn.Mattsson@bth.se>2020-11-13 10:36:55 +0100
commit0c2f2de284a243326758651247d3feccf0cf21f1 (patch)
treedfb1a4e0d6267736a57296622150ca68f489bcac /scripts/get-metadata.sh
parent760e7c1bec1d7b417bf4229716f2064138666237 (diff)
Resolved SWAMID-3397 and SWAMID-3520
Diffstat (limited to 'scripts/get-metadata.sh')
-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 fae50ebb..39e401c2 100755
--- a/scripts/get-metadata.sh
+++ b/scripts/get-metadata.sh
@@ -52,7 +52,7 @@ 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`"
-entityidfn=`echo "$entityid" | sed 's;https*://;;' | tr 'A-Z' 'a-z' | sed 's;/$;;' | sed 's/[^a-z0-9_.-]/-/g' | sed 's/\.xml$//;s/$/.xml/'`
+entityidfn=`echo "$entityid" | sed 's;https*://;;' | tr 'A-Z' 'a-z' | sed 's/[^a-z0-9_.-]/-/g' | sed 's/\.xml$//;s/$/.xml/'`
[ -n "$entityidfn" ] || error "Failed to generate filename from entityid $entityid"
[ -r "$entityidfn" ] && new=false || new=true