backup system only saves file when hashes do not match
This commit is contained in:
parent
5a81523bfc
commit
c1226ed097
1 changed files with 0 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue