aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-fs-add8
-rwxr-xr-xbin/ak-sm-hash-to-path8
2 files changed, 8 insertions, 8 deletions
diff --git a/bin/ak-fs-add b/bin/ak-fs-add
index 0011faf..f22432b 100755
--- a/bin/ak-fs-add
+++ b/bin/ak-fs-add
@@ -183,16 +183,16 @@ do
sed -n "$a"p "$workingIndex" | awk '{ print $1 }' >> level.$c.pair.$a-$b
sed -n "$b"p "$workingIndex" | awk '{ print $1 }' >> level.$c.pair.$a-$b
shaSum="$(sha512sum level.$c.pair.$a-$b | awk '{ print $1 }')"
- mkdir -p $MERKLEDIR/$(_ak_return_hash_dir $shaSum)
- cp level.$c.pair.$a-$b $MERKLEDIR/$(_ak_return_hash_path $shaSum)
+ mkdir -p $MERKLEDIR/$(_ak_fs_return_hash_dir $shaSum)
+ cp level.$c.pair.$a-$b $MERKLEDIR/$(_ak_fs_return_hash_path $shaSum)
sha512sum level.$c.pair.$a-$b | awk '{ print $1 }' >> level.$c.map
a=`expr "$a" + 2`
done
workingIndex="level.$c.map"
appendLastIfNotEven "$workingIndex"
shaSum=`sha512sum $workingIndex | awk '{ print $1 }'`
- mkdir -p $MERKLEDIR/$(_ak_return_hash_dir $shaSum)
- cp $workingIndex $MERKLEDIR/$(_ak_return_hash_path $shaSum)
+ mkdir -p $MERKLEDIR/$(_ak_fs_return_hash_dir $shaSum)
+ cp $workingIndex $MERKLEDIR/$(_ak_fs_return_hash_path $shaSum)
# cp $workingIndex $MERKLEDIR/$shaSum
totalChunks=`cat $workingIndex | wc -l`
c=`expr $c - 1`
diff --git a/bin/ak-sm-hash-to-path b/bin/ak-sm-hash-to-path
index f08d4d4..b114b1b 100755
--- a/bin/ak-sm-hash-to-path
+++ b/bin/ak-sm-hash-to-path
@@ -23,13 +23,13 @@ case "$1" in
exit 1
;;
-d | --dir)
- _ak_verify_input_is_hash $2
- _ak_return_hash_dir $2
+ _ak_fs_verify_input_is_hash $2
+ _ak_fs_return_hash_dir $2
exit 0
;;
-p | --path)
- _ak_verify_input_is_hash $2
- _ak_return_hash_path $2
+ _ak_fs_verify_input_is_hash $2
+ _ak_fs_return_hash_path $2
exit 0
;;
*)