diff options
author | Johan Wassberg <jocar@sunet.se> | 2023-08-25 09:44:13 +0200 |
---|---|---|
committer | Johan Wassberg <jocar@sunet.se> | 2023-08-25 09:44:13 +0200 |
commit | a8efcf53c7b428572f9ae321cac12aa2f5ef7569 (patch) | |
tree | f3cabe3809f4d9c5405ffb014e9a349cea30b18e | |
parent | d5904bcdd778c758a88b92ba948785d0dae81ed2 (diff) |
Revert "Revert "Temporary handle missing declarations of xsd""fidus-metadata-2023-08-25-v05
This reverts commit d5904bcdd778c758a88b92ba948785d0dae81ed2.
-rwxr-xr-x | metadata/scripts/pull-and-verify.sh | 4 |
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/') |