summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Wassberg <jocar@sunet.se>2023-08-25 09:04:32 +0200
committerJohan Wassberg <jocar@sunet.se>2023-08-25 09:04:32 +0200
commitc0d5e94baabb40f9952b9e56c3246d9ecfc9206f (patch)
treef3cabe3809f4d9c5405ffb014e9a349cea30b18e
parent939a6603ea49fc472bb31b71f30b7a50c9200746 (diff)
Temporary handle missing declarations of xsdfidus-metadata-2023-08-25-v03
-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/')