diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-11-26 22:56:03 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-11-26 22:56:03 +0300 |
commit | da0f03b33928a5cc3ca1465828a5374252c2d8ea (patch) | |
tree | b5dc22f42006a94fdd3bf14e560aee0389a55c20 /%HOME% | |
parent | add sums_update_all (diff) | |
download | linux-home-da0f03b33928a5cc3ca1465828a5374252c2d8ea.tar.gz linux-home-da0f03b33928a5cc3ca1465828a5374252c2d8ea.zip |
sums_update_all: exclude sha1sums.txt
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.bash_utils/distr.sh | 4 |
1 files 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" } |