aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_distr
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-07-26 02:10:27 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-07-26 02:10:27 +0300
commit4042abe156b4f9cad30d66238b52fcd938043ded (patch)
treeb351938efa93930aed703119e28c9c269516121f /.bashrc_distr
parentadd append_pgn, join_pgns (diff)
downloadlinux-home-4042abe156b4f9cad30d66238b52fcd938043ded.tar.gz
linux-home-4042abe156b4f9cad30d66238b52fcd938043ded.zip
split .bashrc into multiple files
Diffstat (limited to '.bashrc_distr')
-rw-r--r--.bashrc_distr15
1 files changed, 15 insertions, 0 deletions
diff --git a/.bashrc_distr b/.bashrc_distr
new file mode 100644
index 0000000..10df5b2
--- /dev/null
+++ b/.bashrc_distr
@@ -0,0 +1,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"
+}