aboutsummaryrefslogtreecommitdiff
path: root/bot.zsh
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2026-03-12 08:50:34 +0300
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2026-03-12 08:50:34 +0300
commitae8542802ca1ade4dce1278cc28d5b74ccb3f329 (patch)
tree83d5e9fb452fef1a2fa619355ee246bc5004709e /bot.zsh
parentffd005c1fca44efd49bc1b23287d16b73a5b9cc7 (diff)
bot: Remove wc dependency
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'bot.zsh')
-rwxr-xr-xbot.zsh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot.zsh b/bot.zsh
index d2b9155..957742d 100755
--- a/bot.zsh
+++ b/bot.zsh
@@ -72,7 +72,6 @@ busybox=(
sleep
tail
tar
- wc
)
if [[ -n "${1}" ]]
@@ -711,7 +710,7 @@ then
fi
help_line_counter=1
-help_max_line=$(($(wc -l <<< "${file_content}" | cut -d ' ' -f 1) + 1))
+help_max_line=$(($(grep -c '' <<< "${file_content}" | cut -d ' ' -f 1) + 1))
until [[ ${help_line_counter} -eq $((help_max_line + 1)) ]]
do