From 69efc60083518f1342b15ff5bd73567442bb0a6a Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Sun, 31 Mar 2019 15:14:29 -0400 Subject: [PATCH] small cleanup --- bin/web | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/web b/bin/web index ce17d41..5a45f86 100755 --- a/bin/web +++ b/bin/web @@ -8,14 +8,14 @@ entry_index () { logdir=$(dirname "$log") title=$(printf "%s" "$line" | awk -F'\t' '{print $1}' | sed 's|^.||') itemnum=$((logcount-index+1)) - page=$((((index)/logs_per_page)+1)) + page=$(( index / logs_per_page + 1 )) if [ "$page" -ne 1 ]; then entry_index_html="/var/www/html/log/index-${page}.html" else entry_index_html="${log_html}" fi # print link in listings - if [ "$index" -lt 20 ]; then + if [ "$index" -lt 20 ]; then printf "%s >> %s\\n" "$loghtml" "$itemnum" "$title" >> "${root_index_html}" fi printf "%s >> %s\\n" "$loghtml" "$itemnum" "$title" >> "${entry_index_html}"