From 40ad20464700357cbe50676abfb2cb24d33f5037 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 10 Jun 2024 17:52:44 +0300 Subject: bugfixes --- bin/ak | 2 +- lib/_ak_html | 4 ++-- lib/_ak_zblock | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/ak b/bin/ak index 539176a..4d5e9d2 100755 --- a/bin/ak +++ b/bin/ak @@ -57,7 +57,7 @@ case "$1" in shift subcmd="$AK_MODULESDIR/$(echo $1 | sed -e 's/ /-/g')" shift - if [ -z $* ] || [ ! -n "$*" ] + if [ -z $1 ] || [ ! -n "$*" ] then logit "ERROR" "No module selected" ls -1 $AK_MODULESDIR diff --git a/lib/_ak_html b/lib/_ak_html index bae5466..38723c8 100755 --- a/lib/_ak_html +++ b/lib/_ak_html @@ -10,7 +10,7 @@ _ak_generate_html_header(){ printf ' body {\n' printf ' background-color: #000;\n' printf ' color: lightgreen;\n' - printf ' padding: 2%;\n' + printf ' padding: 2%%;\n' printf ' width: auto;\n' printf ' font-family: monospace;\n' printf ' font-size: 1rem;\n' @@ -162,7 +162,7 @@ _ak_generate_html_zblock(){ printf ' \n' printf ' \n' printf '
\n' - printf ' $zblock\n' + printf ' %s\n' "$zblock" printf '
%s
' "$(_ak_ipfs_cat $zblock | jq)" printf '
\n' printf ' \n' diff --git a/lib/_ak_zblock b/lib/_ak_zblock index 6aec37d..0095c3d 100755 --- a/lib/_ak_zblock +++ b/lib/_ak_zblock @@ -394,7 +394,7 @@ _ak_zblock_gen_html(){ se=$(echo $time_ended | cut -d '.' -f 1) nse=$(echo $time_ended | cut -d '.' -f 2) printf '
\n' >> zblock-$1.html - printf '