aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-sm-hash-to-path
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-sm-hash-to-path')
-rwxr-xr-xbin/ak-sm-hash-to-path41
1 files changed, 0 insertions, 41 deletions
diff --git a/bin/ak-sm-hash-to-path b/bin/ak-sm-hash-to-path
deleted file mode 100755
index b114b1b..0000000
--- a/bin/ak-sm-hash-to-path
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/bash
-##
-## With this tool you give a SHA512 and take the following:
-##
-## -h, --help This help message
-##
-## -d, --dir <base path> <hash> Directory that the hashed file would be
-## hosted
-##
-## -p, --path <base path> <hash> Full path that the hashed file would be
-## saved
-##
-
-fullprogrampath="$(realpath $0)"
-PROGRAM="$(basename $0)"
-descriptionString="Simple driver for hashes/chunks/branches"
-source $AK_LIBDIR/_ak_fs
-source $AK_LIBDIR/_ak_script
-
-case "$1" in
- -h | --help)
- _ak_usage
- exit 1
- ;;
- -d | --dir)
- _ak_fs_verify_input_is_hash $2
- _ak_fs_return_hash_dir $2
- exit 0
- ;;
- -p | --path)
- _ak_fs_verify_input_is_hash $2
- _ak_fs_return_hash_path $2
- exit 0
- ;;
- *)
- echo "no option?!" >&2
- exit 1
- ;;
-esac
-
-exit 0