summaryrefslogtreecommitdiff
path: root/scripts/get-metadata.sh
diff options
context:
space:
mode:
authorFredrik Domeij <fredrik.domeij@umu.se>2021-09-09 13:36:54 +0200
committerFredrik Domeij <fredrik.domeij@umu.se>2021-09-09 13:36:54 +0200
commit183ada3287a792341887e2e4eb27d9ac3e0b96af (patch)
tree0444e1d926a3802d6389a2ba242d790f4e3b84da /scripts/get-metadata.sh
parent51884311d7b2ebad7a09084d11701fe4577a75cd (diff)
Renamed files to match entityID part3
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 49a43d54..a7574458 100755
--- a/scripts/get-metadata.sh
+++ b/scripts/get-metadata.sh
@@ -58,7 +58,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/[^a-z0-9_.-]/-/g' | sed 's/\.xml$//;s/$/.xml/'`
+entityidfn=`echo "$entityid" | sed 's;.*://;;' | sed 's/[^a-zwA-ZW0-9_.-]/-/g' | sed 's/$/.xml/'`
[ -n "$entityidfn" ] || error "Failed to generate filename from entityid $entityid"
[ -r "$entityidfn" ] && new=false || new=true