checksum : fix recursive create.

This commit is contained in:
Dmitry Voronin 2023-11-22 14:57:11 +03:00
parent 85dd586802
commit a4bb766210

View file

@ -5,8 +5,7 @@ checksum_create()
return 1 return 1
fi fi
sha1sum * > .checksum 2> /dev/null find -type f | parallel -- sha1sum {} >> .checksum
sed -i "/\.checksum/d" .checksum sed -i "/\.checksum/d" .checksum
} }
@ -22,7 +21,5 @@ checksum_update()
return 1 return 1
fi fi
sha1sum --quiet -c .checksum && rm .checksum && sha1sum * > .checksum 2> /dev/null checksum_check && rm .checksum && checksum_create
true
} }