diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-03-12 08:50:34 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-03-12 08:50:34 +0300 |
| commit | ae8542802ca1ade4dce1278cc28d5b74ccb3f329 (patch) | |
| tree | 83d5e9fb452fef1a2fa619355ee246bc5004709e /bot.zsh | |
| parent | ffd005c1fca44efd49bc1b23287d16b73a5b9cc7 (diff) | |
bot: Remove wc dependency
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'bot.zsh')
| -rwxr-xr-x | bot.zsh | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |
