aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_distr
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-08-13 23:50:48 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2016-08-13 23:50:48 +0200
commit8fec942ab9913a38423a4cfea37d29ea304ddd0e (patch)
tree5a7ea2c281ee34840ce6d4db5232707ff004f464 /.bashrc_distr
parentfix ShellCheck warnings (diff)
downloadlinux-home-8fec942ab9913a38423a4cfea37d29ea304ddd0e.tar.gz
linux-home-8fec942ab9913a38423a4cfea37d29ea304ddd0e.zip
code style
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"
}