aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_distr
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc_distr')
-rw-r--r--.bashrc_distr8
1 files changed, 6 insertions, 2 deletions
diff --git a/.bashrc_distr b/.bashrc_distr
index a680b6b..f573653 100644
--- a/.bashrc_distr
+++ b/.bashrc_distr
@@ -12,14 +12,18 @@ update_checksums() {
sha1sum -- "$@" > "$checksums_path"
}
-update_checksums_distr() {
+update_checksums_distr() (
+ set -o errexit -o nounset -o pipefail
+
local -a paths
local path
+
while IFS= read -d '' -r path; do
paths+=("$path")
done < <( find . -type f -\( -iname '*.exe' -o -iname '*.iso' -\) -print0 )
+
update_checksums "${paths[@]+"${paths[@]}"}"
-}
+)
verify_checksums() {
sha1sum --check "$checksums_path"