aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-fs-add
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-05-27 10:56:40 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-05-27 10:56:40 +0300
commit2c9df6a4bfc99559fa741a88b7e3041e2b2f9ee8 (patch)
tree3317441069b359c4f9347ba99458424ccfcc1e8c /bin/ak-fs-add
parent7a52180ec7a2f8b23f29b9a3094c5d015314acc0 (diff)
downloadarching-kaos-tools-2c9df6a4bfc99559fa741a88b7e3041e2b2f9ee8.tar.gz
arching-kaos-tools-2c9df6a4bfc99559fa741a88b7e3041e2b2f9ee8.tar.bz2
arching-kaos-tools-2c9df6a4bfc99559fa741a88b7e3041e2b2f9ee8.zip
Refactoring
Diffstat (limited to 'bin/ak-fs-add')
-rwxr-xr-xbin/ak-fs-add8
1 files changed, 4 insertions, 4 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`