hbbs

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

commit 833b794754258818dc051f4fd04cccbecaaf32f1
parent 55fe1486ad0c225f74f02f3d7d79a8297512f187
Author: hhvn <hayden@haydenvh.com>
Date:   Mon,  1 Feb 2021 12:12:24 +0000

bin/interface.sh: use  instead of  for next and previous, when they can't be executed

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

diff --git a/bin/interface.sh b/bin/interface.sh @@ -162,7 +162,8 @@ menu_read(){ id2=${id##*.} cat $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') pager2 < $datadir/boards/$board/$(echo "$file" | sed -E 's/.* (.)/\1/') - while prompt "($(($id2+1))/$(awk -v "file=$(echo "$file" | sed 's/ .*//')" -F" " '$6 == file' < $datadir/boards/$board/list | wc -l)) Ne${k}x${s}t ${k}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 + 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 parse_in "$input" case "$cmd" in