aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/_ak_fs7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/_ak_fs b/lib/_ak_fs
index b216e55..3d5ed71 100755
--- a/lib/_ak_fs
+++ b/lib/_ak_fs
@@ -630,11 +630,16 @@ function _ak_fs_net_cat(){
counter="$(expr $counter + 1)"
done
base64 -d output > output.d
+ if [ $? -ne 0 ]
+ then
+ _ak_log_error "Fatal error during dencoding."
+ exit 1
+ fi
shaout="$(sha512sum output.d | awk '{print $1}')"
expHash="$2"
if [ "$shaout" == "$expHash" ]
then
- base64 -d output
+ cat output.d
_ak_log_info "Recreation of $treeRootHash succeeded!"
else
_ak_log_error "Recreation of $treeRootHash failed!"