From a4bb766210dcef23b791fc7d98e2b7a376e5c12e Mon Sep 17 00:00:00 2001 From: home Date: Wed, 22 Nov 2023 14:57:11 +0300 Subject: [PATCH] checksum : fix recursive create. --- .config/bash/module/checksum.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.config/bash/module/checksum.sh b/.config/bash/module/checksum.sh index 154f70b..1c7406d 100644 --- a/.config/bash/module/checksum.sh +++ b/.config/bash/module/checksum.sh @@ -5,8 +5,7 @@ checksum_create() return 1 fi - sha1sum * > .checksum 2> /dev/null - + find -type f | parallel -- sha1sum {} >> .checksum sed -i "/\.checksum/d" .checksum } @@ -22,7 +21,5 @@ checksum_update() return 1 fi - sha1sum --quiet -c .checksum && rm .checksum && sha1sum * > .checksum 2> /dev/null - - true + checksum_check && rm .checksum && checksum_create }