backup system only saves file when hashes do not match

This commit is contained in:
KoenDR06 2025-01-21 13:50:23 +01:00
parent 5a81523bfc
commit c1226ed097

View file

@ -9,7 +9,6 @@ if grep -q $(sha256sum $file) backups/sum; then
rm $file
exit 0
fi
echo 'Writing new hash'
echo $(sha256sum $file) > backups/sum
exit 0