#!/bin/bash
set -e
-files=$(find . -type f -not -iwholename "*.git*")
+files=$(find . -type f -not -iwholename "*.git*" -not -name "README.md" -not -name "put.bash" -not -name "hashes.txt")
user=$(gpg -q --use-agent -d ~/pw/general.asc | grep ftpmartlubbers.net -A3 | head -3 | tail -2 | sed 's/\s\+\(user\|pass\):\s\+//g' | head -c -1 | tr '\n' ':')
-for f in $(find . -type f -not -iwholename "*.git*")
+for f in $files
do
origmd5=$(grep "$f" ./hashes.txt | awk '{print $1}')
currmd5=$(md5sum "$f" | awk '{print $1}')