diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-04-08 13:49:39 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-04-08 13:49:39 +0300 |
| commit | 0d8589d94855b01c1e1c500fcd4793db4d41e6f9 (patch) | |
| tree | 17d1afdb3652ccbb224385123052f3eecfdc7c76 /bot.zsh | |
| parent | ad84364faf40d0882ebc054f0420a4a229cc69c1 (diff) | |
bot: Remove unused option
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'bot.zsh')
| -rwxr-xr-x | bot.zsh | 23 |
1 files changed, 1 insertions, 22 deletions
@@ -76,7 +76,7 @@ busybox=( if [[ -n "${1}" ]] then - while getopts ha:olg:r:m:t:s:cqi:e:d:f:n:x:k: opts + while getopts ha:olg:r:m:t:s:cqi:e:f:n:x:k: opts do case "${opts}" in (h) @@ -118,9 +118,6 @@ then (e) external_timeout=${OPTARG} ;; - (d) - head_timeout=${OPTARG} - ;; (f) connrefused_timeout=${OPTARG} ;; @@ -164,7 +161,6 @@ then "\n -q\t\tDo not print logs" \ "\n -i <secs>\tTelegram Bot API connetion timeout, max: 5, default: 5 secs" \ "\n -e <secs>\tImage Boards API connetion timeout, max: 5, default: 5 secs" \ - "\n -d <secs>\tHead request connetion timeout, max: 5, default: 2 secs" \ "\n -f <secs>\tConnrefused timeout, max: 2, default: none" \ "\n -n <addr>\tProxy server for Telegram Bot API" \ "\n -x <addr>\tProxy server for Image Boards/SauceNAO API" \ @@ -352,23 +348,6 @@ else external_timeout=5 fi -if [[ -n "${head_timeout}" ]] -then - if ! test ${head_timeout} -gt 0 - then - echo "Illegal head request timeout" \ - "\nSee '${0} -h'" - exit 1 - fi - - if [[ ${head_timeout} -gt 5 ]] - then - head_timeout=5 - fi -else - head_timeout=2 -fi - if [[ -n "${connrefused_timeout}" ]] then if ! test ${connrefused_timeout} -gt 0 |
