summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Wassberg <jocar@sunet.se>2023-08-25 09:44:13 +0200
committerJohan Wassberg <jocar@sunet.se>2023-08-25 09:44:13 +0200
commita8efcf53c7b428572f9ae321cac12aa2f5ef7569 (patch)
treef3cabe3809f4d9c5405ffb014e9a349cea30b18e
parentd5904bcdd778c758a88b92ba948785d0dae81ed2 (diff)
Revert "Revert "Temporary handle missing declarations of xsd""fidus-metadata-2023-08-25-v05
This reverts commit d5904bcdd778c758a88b92ba948785d0dae81ed2.
-rwxr-xr-xmetadata/scripts/pull-and-verify.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/metadata/scripts/pull-and-verify.sh b/metadata/scripts/pull-and-verify.sh
index f1b11b2..806ea3a 100755
--- a/metadata/scripts/pull-and-verify.sh
+++ b/metadata/scripts/pull-and-verify.sh
@@ -28,6 +28,10 @@ for md in $TMPD/*.xml; do
echo "cleaning $md"
sed 's/ xsi:type="xs:string"//' $md > $md.c && mv $md.c $md
fi
+ if (grep -q 'xsd:string' $md); then
+ echo "cleaning $md"
+ sed 's/ xsi:type="xsd:string"//' $md > $md.c && mv $md.c $md
+ fi
if (! (grep -q 'IDPSSODescriptor ' $md)); then
# Check if SP is OK else remove
SP=$(grep "entityID=" $md | sed 's/.*entityID="\(.*[a-zA-Z0-9/]\)".*/\1/')