diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-06 20:45:23 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-06 20:45:23 +0300 |
commit | f05d745f30dea9810c42b75c5f191e57a68fa74a (patch) | |
tree | c74cb48b870eb0cc01bee4e798ef4e32bad9c3a3 /.bash_utils/distr.sh | |
parent | README update (diff) | |
download | linux-home-f05d745f30dea9810c42b75c5f191e57a68fa74a.tar.gz linux-home-f05d745f30dea9810c42b75c5f191e57a68fa74a.zip |
mustn't be a repository anymore
Diffstat (limited to '.bash_utils/distr.sh')
-rw-r--r-- | .bash_utils/distr.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/.bash_utils/distr.sh b/.bash_utils/distr.sh deleted file mode 100644 index 06d342a..0000000 --- a/.bash_utils/distr.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com> -# This file is part of the "Cygwin configuration files" project. -# For details, see https://github.com/egor-tensin/cygwin-home. -# Distributed under the MIT License. - -checksums_path='sha1sums.txt' - -update_checksums() { - sha1sum -- "$@" > "$checksums_path" -} - -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" -} |