Updates per codeRabbit recommendations

This commit is contained in:
bergware
2025-05-30 00:53:31 +02:00
parent 587a451268
commit 8b44d1145d
2 changed files with 10 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ nchan_idle(){
idle=3
for n in {1..3}; do
subs=$(nchan_subs)
[[ -z $subs || $subs =~ ^[0-9]+$ && $subs -eq 0 ]] && ((idle--))
[[ -z $subs || ( $subs =~ ^[0-9]+$ && $subs -eq 0 ) ]] && ((idle--))
sleep 3
done
[[ $idle -eq 0 ]]