From 35d858363a88f1d985ba36cf0e18de6ab0ccfcd1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 17 Aug 2016 22:58:15 +0200 Subject: move .bashrc_* to .bash_utils/ --- .bashrc_distr | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .bashrc_distr (limited to '.bashrc_distr') diff --git a/.bashrc_distr b/.bashrc_distr deleted file mode 100644 index 8e7b84c..0000000 --- a/.bashrc_distr +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2016 Egor Tensin -# 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. - -readonly 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" -} -- cgit v1.2.3