From fbbb358b8faf7e966ffa476cd1125673c69b3ab6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 5 Aug 2023 08:13:10 +0300 Subject: Encodes file to base64 to avoid losing bytes --- bin/ak-sm-merkle-tree | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3