aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_distr
blob: 10df5b2427ef306ce75099dd5c7de9ec38bc5787 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[ ! -z "${BASHRC_DISTR+x}" ] && return || readonly BASHRC_DISTR=1

checksums_path='sha1sums.txt'

update_checksums() {
  sha1sum "$@" > "$checksums_path"
}

update_checksums_distr() {
  update_checksums *.exe *.iso
}

verify_checksums() {
  sha1sum --check "$checksums_path"
}