#!/bin/bash cd /var/cache/metadata_git.swamid.se && make update rsync -a /opt/metadata/swamid-internal/* /opt/metadata/swamid-qa ./scripts/download-pending cd /var/cache/metadata_git.swamid.se/metadata || exit 2 for file in `ls swamid-internal/` ; do if [ -r swamid-qa/$file ]; then diff swamid-internal/$file swamid-qa/$file || exit 1 fi done #/opt/metadata/scripts/update-and-validate.sh