From 0d8589d94855b01c1e1c500fcd4793db4d41e6f9 Mon Sep 17 00:00:00 2001 From: Maria Lisina Date: Wed, 8 Apr 2026 13:49:39 +0300 Subject: bot: Remove unused option Signed-off-by: Maria Lisina --- bot.zsh | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'bot.zsh') diff --git a/bot.zsh b/bot.zsh index c79334b..eea5124 100755 --- a/bot.zsh +++ b/bot.zsh @@ -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 \tTelegram Bot API connetion timeout, max: 5, default: 5 secs" \ "\n -e \tImage Boards API connetion timeout, max: 5, default: 5 secs" \ - "\n -d \tHead request connetion timeout, max: 5, default: 2 secs" \ "\n -f \tConnrefused timeout, max: 2, default: none" \ "\n -n \tProxy server for Telegram Bot API" \ "\n -x \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 -- cgit v1.2.3