hbbs

bbs.hlirc.net
Log | Files | Refs | README | LICENSE

commit c8bf4cc819e22729beec5f63630d3cd1258b95b8
parent 01089e5a2bbd08d76884fc2f23a17b6e1e11a4a6
Author: hhvn <hayden@haydenvh.com>
Date:   Mon,  1 Feb 2021 13:56:11 +0000

bin/interface.sh: show blank line instead of invisble root post

Diffstat:
Mbin/interface.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/interface.sh b/bin/interface.sh @@ -82,8 +82,8 @@ menu_list(){ echo ================================================================================ awk -v "n=1" -v "c0=${s}" -v "c1=$(tput setaf $num___colour)" -v "c2=$(tput setaf $date__colour)" -F" " \ '$1 != n {print "--------------------------------------------------------------------------------"} - 1 {printf("%s% 3s.%- 3s%s [%s%s%s] %- 10s | %s\n", c1, $1, $2, c0, c2, $3, c0, $4, $5); n=$1}' \ - < $datadir/boards/$board/list | pager 5 $(echo "$banner" | wc -l) + $4 != "root" {printf("%s% 3s.%- 3s%s [%s%s%s] %- 10s | %s\n", c1, $1, $2, c0, c2, $3, c0, $4, $5); n=$1} + $4 == "root" {print ""}' < $datadir/boards/$board/list | pager 5 $(echo "$banner" | wc -l) printf '=%- 10s============================================================Page:%- 3d=\n' "$(echo "$board" | tr '[:lower:]' '[:upper:]')" "$page" | tr ' ' '=' | sed 's/==$/ =/;s/:=/: /' while prompt "Ne${k}x${s}t ${k}p${s}revious ${k}b${s}oards rel${k}o${s}ad ${k}r${s}ead ${k}$(check_post_perm $board $user noprint || printf "${e}")n${s}ew ${k}h${s}elp" input do