diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-15 00:01:09 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-15 00:01:09 +0300 |
commit | e0b5fc5d576ce3726e755d709cd3e1d1f00d9290 (patch) | |
tree | c2bcdb579f0b72a4a67c28f52ab85822c5216cfb | |
parent | sums_list_paths: handle special characters (diff) | |
download | linux-home-e0b5fc5d576ce3726e755d709cd3e1d1f00d9290.tar.gz linux-home-e0b5fc5d576ce3726e755d709cd3e1d1f00d9290.zip |
sums_update -> sums_add
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.bash_utils/distr.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/%HOME%/.bash_utils/distr.sh b/%HOME%/.bash_utils/distr.sh index 2f51a96..83b00ad 100644 --- a/%HOME%/.bash_utils/distr.sh +++ b/%HOME%/.bash_utils/distr.sh @@ -53,7 +53,7 @@ sums_list_paths() ( [ "${#paths[@]}" -gt 0 ] && printf -- "$fmt" ${paths[@]+"${paths[@]}"} ) -sums_update() ( +sums_add() ( set -o errexit -o nounset -o pipefail local -A existing @@ -74,7 +74,7 @@ sums_update() ( sha1sum -- ${missing[@]+"${missing[@]}"} >> "$sums_path" ) -sums_update_all() ( +sums_add_all() ( set -o errexit -o nounset -o pipefail local -a paths @@ -84,10 +84,10 @@ sums_update_all() ( paths+=("$path") done < <( find . -type f -\! -name "$( basename -- "$sums_path" )" -printf '%P\0' ) - sums_update ${paths[@]+"${paths[@]}"} + sums_add ${paths[@]+"${paths[@]}"} ) -sums_update_distr() ( +sums_add_distr() ( set -o errexit -o nounset -o pipefail local -a paths @@ -97,7 +97,7 @@ sums_update_distr() ( paths+=("$path") done < <( find . -type f -\( -iname '*.exe' -o -iname '*.iso' -o -iname '*.tar.gz' -o -iname '*.tar.bz2' -o -iname '*.zip' -\) -printf '%P\0' ) - sums_update ${paths[@]+"${paths[@]}"} + sums_add ${paths[@]+"${paths[@]}"} ) sums_verify() { |