aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-05 08:13:10 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-05 08:13:10 +0300
commitfbbb358b8faf7e966ffa476cd1125673c69b3ab6 (patch)
treec876820e9df6b1c4da09a491a95d1b2ad839b94f
parentceab9d276be46d6d136d6a7d48c7ed165f7bc0f1 (diff)
downloadarching-kaos-tools-fbbb358b8faf7e966ffa476cd1125673c69b3ab6.tar.gz
arching-kaos-tools-fbbb358b8faf7e966ffa476cd1125673c69b3ab6.tar.bz2
arching-kaos-tools-fbbb358b8faf7e966ffa476cd1125673c69b3ab6.zip
Encodes file to base64 to avoid losing bytes
-rwxr-xr-xbin/ak-sm-merkle-tree3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ak-sm-merkle-tree b/bin/ak-sm-merkle-tree
index 1178803..0fe8f7a 100755
--- a/bin/ak-sm-merkle-tree
+++ b/bin/ak-sm-merkle-tree
@@ -26,7 +26,8 @@ then
echo "[ERROR] File not found"
exit 1
else
- FILE="$1"
+ base64 $1 > file
+ FILE="file"
fi
# The directory where the chunked data will be living at