aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_distr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.bashrc_distr20
1 files changed, 10 insertions, 10 deletions
diff --git a/.bashrc_distr b/.bashrc_distr
index 6534378..8968ca5 100644
--- a/.bashrc_distr
+++ b/.bashrc_distr
@@ -1,26 +1,26 @@
#!/usr/bin/env bash
if [ -n "${BASHRC_DISTR+x}" ]; then
- return 0
+ return 0
else
- readonly BASHRC_DISTR=1
+ readonly BASHRC_DISTR=1
fi
checksums_path='sha1sums.txt'
update_checksums() {
- sha1sum -- "$@" > "$checksums_path"
+ sha1sum -- "$@" > "$checksums_path"
}
update_checksums_distr() {
- local -a paths=()
- local path
- while IFS= read -r -d $'\0' path; do
- paths+=("$path")
- done < <( find . -type f -\( -iname '*.exe' -o -iname '*.iso' -\) -print0 )
- update_checksums "${paths[@]+"${paths[@]}"}"
+ local -a paths=()
+ local path
+ while IFS= read -r -d $'\0' path; do
+ paths+=("$path")
+ done < <( find . -type f -\( -iname '*.exe' -o -iname '*.iso' -\) -print0 )
+ update_checksums "${paths[@]+"${paths[@]}"}"
}
verify_checksums() {
- sha1sum --check "$checksums_path"
+ sha1sum --check "$checksums_path"
}