From da0f03b33928a5cc3ca1465828a5374252c2d8ea Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 26 Nov 2016 22:56:03 +0300 Subject: sums_update_all: exclude sha1sums.txt --- %HOME%/.bash_utils/distr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/%HOME%/.bash_utils/distr.sh b/%HOME%/.bash_utils/distr.sh index f51ca67..8baba56 100644 --- a/%HOME%/.bash_utils/distr.sh +++ b/%HOME%/.bash_utils/distr.sh @@ -73,7 +73,7 @@ sums_update_all() ( while IFS= read -d '' -r path; do paths+=("$path") - done < <( find . -type f -printf '%P\0' ) + done < <( find . -type f -\! -name "$sums_path" -printf '%P\0' ) sums_update ${paths[@]+"${paths[@]}"} ) @@ -92,5 +92,5 @@ sums_update_distr() ( ) sums_verify() { - sha1sum --check -- "$sums_path" + sha1sum --check --quiet -- "$sums_path" } -- cgit v1.2.3