if [ "${loaded_entites_in_pyff}" -ne "${entities_on_disk}" ]; then
echo "Pyff has ${loaded_entites_in_pyff} entites loaded but there are ${entities_on_disk} entities in ${metadata_dir}. Please investigate pyffs logs."
exit_status=1
fi
incoming_files=$(find ${metadata_dir}/* -type f | wc -l)
signed_files=$(find ${signed_dir} -type f ! -name 'index.html' | wc -l)
if [ "${incoming_files}" -ne "${signed_files}" ]; then
exit_status=1
echo "The incoming metadata dir (${metadata_dir}) contains ${incoming_files} and the signed metadata dir (${signed_dir}) contains ${signed_files}. That ain't right. Please investigate."
echo "The following files might help you investigate:"