From e0b5fc5d576ce3726e755d709cd3e1d1f00d9290 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 15 Apr 2017 00:01:09 +0300 Subject: sums_update -> sums_add --- %HOME%/.bash_utils/distr.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '%HOME%') 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() { -- cgit v1.2.3