diff options
-rwxr-xr-x | metadata/scripts/get-metadata.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/metadata/scripts/get-metadata.sh b/metadata/scripts/get-metadata.sh index 16379681..095f391e 100755 --- a/metadata/scripts/get-metadata.sh +++ b/metadata/scripts/get-metadata.sh @@ -23,7 +23,6 @@ EOF fi xmldir=swamid-2.0 -update_xml=true if echo "$metadataurl" | grep -qE '^http://|^https://' ; then metadata=`curl -L -s -k -f "$metadataurl"` elif echo "$metadataurl" | grep -qE '^reep:' ; then @@ -38,7 +37,6 @@ else [0-9][0-9]*) xmldir=$(curl -L -m 5 -s -k -f "https://metadata.swamid.se/?show=feed&id=${metadataurl}") urls="https://metadata.swamid.se/?rawXML=${metadataurl}" - update_xml=false ;; http*) urls="$metadataurl" @@ -87,9 +85,7 @@ case $x in Y|y|"") echo "$metadata" > $entityidfn tmp=`mktemp` - if $update_xml ; then - xsltproc --stringparam regDate "$regdate" $script_cwd/../xslt/add-rpi.xsl ${entityidfn} > ${tmp} && mv ${tmp} ${entityidfn} - fi + xsltproc --stringparam regDate "$regdate" $script_cwd/../xslt/add-rpi.xsl ${entityidfn} > ${tmp} && mv ${tmp} ${entityidfn} xsltproc $script_cwd/../xslt/clean-entitydescriptor.xsl ${entityidfn} > ${tmp} && mv ${tmp} ${entityidfn} if $new ; then |