hbbs

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

commit 01b8b7879a3428bceafd59a844da0a6e5d8729c3
parent 67572429a73c7197180e47eb8d0f1c3a635ae566
Author: hhvn <hayden@haydenvh.com>
Date:   Tue,  2 Feb 2021 11:25:49 +0000

bin/interface.sh: do not show ending full-stops in menu_read

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

diff --git a/bin/interface.sh b/bin/interface.sh @@ -159,8 +159,8 @@ menu_read(){ file=$(awk -v "id1=${id%%.*}" -v "id2=${id2}" -F" " '$1 == id1 && $2 == id2 {print $6 " " $7}' < $datadir/boards/$board/list) from=$(awk -v "id1=${id%%.*}" -v "id2=${id2}" -F" " '$1 == id1 && $2 == id2 {print $4}' < $datadir/boards/$board/list) fromf=$([ "$(userget $from realname)" != "$from" ] && echo "From: $(userget $from realname) <$from>" || echo "From: $from") - printf '%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') - printf '%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | pager2 + printf '%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | sed 's/^\.$/ /' + printf '%s\n\n' "$fromf" | cat /dev/stdin $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') | sed 's/^\.$/ /' | pager2 total_in_thread=$(awk -v "file=$(echo "$file" | sed 's/ .*//')" -F" " '$6 == file' < $datadir/boards/$board/list | wc -l) while prompt "($(($id2+1))/$total_in_thread) Ne${k}$([ $(($id2+1)) -eq $total_in_thread ] && printf "${e}")x${s}t ${k}$([ $id2 -eq 0 ] && printf "${e}")p${s}revious rep${k}$(check_reply_perm $board $user noprint)l${s}y ${k}b${s}oards b${k}a${s}ck ${k}h${s}elp" input do