diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-13 23:50:48 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-13 23:50:48 +0200 |
commit | 8fec942ab9913a38423a4cfea37d29ea304ddd0e (patch) | |
tree | 5a7ea2c281ee34840ce6d4db5232707ff004f464 /.bashrc_distr | |
parent | fix ShellCheck warnings (diff) | |
download | linux-home-8fec942ab9913a38423a4cfea37d29ea304ddd0e.tar.gz linux-home-8fec942ab9913a38423a4cfea37d29ea304ddd0e.zip |
code style
Diffstat (limited to '.bashrc_distr')
-rw-r--r-- | .bashrc_distr | 20 |
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" } |