diff options
author | Björn Mattsson <bjorn@sunet.se> | 2021-08-23 13:47:53 +0200 |
---|---|---|
committer | Björn Mattsson <bjorn@sunet.se> | 2021-08-23 13:47:53 +0200 |
commit | 1f16143be925179875e9cc0b13e792da4ce1a963 (patch) | |
tree | 1d4e9fda449097001e2b94b1ae540532e4b1413e /scripts | |
parent | bd3ab45eaf334e696fd6a085cf88d73ef60dcbce (diff) |
Renamed files to match entityID part2
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/rename-xml.sh | 2 | ||||
-rwxr-xr-x | scripts/update-and-validate.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/rename-xml.sh b/scripts/rename-xml.sh index 9ef89ead..e82742d9 100755 --- a/scripts/rename-xml.sh +++ b/scripts/rename-xml.sh @@ -32,7 +32,7 @@ if test -d swamid-2.0 ; then fi if echo "$entityID" | grep -qE '^http://|^https://' ; then - metadata=`grep -il "$entityID" *` + metadata=`grep -il "entityID.*$entityID" *` else echo "Missing http(s) in entityID" fi diff --git a/scripts/update-and-validate.sh b/scripts/update-and-validate.sh index 280064f9..c9a5c0f9 100755 --- a/scripts/update-and-validate.sh +++ b/scripts/update-and-validate.sh @@ -8,8 +8,6 @@ update() /var/www/scripts/updateWebb.bash - make -f Makefile.validate -s - ls swamid-2.0/*.xml | sed 's@swamid-2.0/\(.*\).xml@.time/\1.validate@' > /tmp/$$.xml ls .time/*.validate > /tmp/$$.time comm -13 /tmp/$$.xml /tmp/$$.time | while read file; do @@ -21,6 +19,8 @@ update() if [ $(find .time/ -ctime +15 | wc -l) -ne 0 ]; then rm `find .time/ -ctime +15 | tail -10` fi + + make -f Makefile.validate -s } cd /opt/swamid-metadata || exit 1 |