From 0ad890bae271b17a7eaf76f70b2c462e4ca10333 Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 9 Oct 2022 01:19:04 -0500 Subject: reorganize .local/bin folder --- shasum | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 shasum (limited to 'shasum') diff --git a/shasum b/shasum new file mode 100755 index 0000000..18efefd --- /dev/null +++ b/shasum @@ -0,0 +1,22 @@ +#!/bin/sh + +for i in "$@"; do + case $i in + "-a") BITS="y" + continue + ;; + *) + ARGS="$i " + ;; + esac + if [ -n "$BITS" ]; then + case $i in + 256|512) + PROGRAM="sha"$i"sum" + ;; + esac + unset BITS + fi +done +cat - | "$PROGRAM" $ARGS +echo "$PROGRAM $ARGS" -- cgit v1.2.3