diff options
author | Fredrik Domeij <fredrik.domeij@umu.se> | 2021-09-09 13:36:54 +0200 |
---|---|---|
committer | Fredrik Domeij <fredrik.domeij@umu.se> | 2021-09-09 13:36:54 +0200 |
commit | 183ada3287a792341887e2e4eb27d9ac3e0b96af (patch) | |
tree | 0444e1d926a3802d6389a2ba242d790f4e3b84da /scripts/get-metadata.sh | |
parent | 51884311d7b2ebad7a09084d11701fe4577a75cd (diff) |
Renamed files to match entityID part3
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 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 |