From 8fec942ab9913a38423a4cfea37d29ea304ddd0e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Aug 2016 23:50:48 +0200 Subject: code style --- .bashrc_distr | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to '.bashrc_distr') 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" } -- cgit v1.2.3