aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-10 17:52:44 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-10 17:52:44 +0300
commit40ad20464700357cbe50676abfb2cb24d33f5037 (patch)
treeff75b8677cb4747fc0345e3ffc1e2d48f36a3c1b
parent07e553ef18171362b3be34459ed595f88682d4fc (diff)
downloadarching-kaos-tools-40ad20464700357cbe50676abfb2cb24d33f5037.tar.gz
arching-kaos-tools-40ad20464700357cbe50676abfb2cb24d33f5037.tar.bz2
arching-kaos-tools-40ad20464700357cbe50676abfb2cb24d33f5037.zip
bugfixes
-rwxr-xr-xbin/ak2
-rwxr-xr-xlib/_ak_html4
-rwxr-xr-xlib/_ak_zblock2
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 ' </td>\n'
printf ' <td>\n'
printf ' <details>\n'
- printf ' <summary>$zblock</summary>\n'
+ printf ' <summary>%s</summary>\n' "$zblock"
printf ' <pre>%s</pre>' "$(_ak_ipfs_cat $zblock | jq)"
printf ' </details>\n'
printf ' </td>\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 ' <hr>\n' >> zblock-$1.html
- printf ' <footer>Generated by $PROGRAM on $(datehuman) in $(( $se - $ss )).' >> zblock-$1.html
+ printf ' <footer>Generated by %s on %s in %s.' "$PROGRAM" "$(datehuman)" "$(( $se - $ss ))">> zblock-$1.html
if [ $nse -lt $nss ]
then
printf '%s seconds</footer>\n' "$(( 1$nse - $nss ))" >> zblock-$1.html