Skip to content

Commit

Permalink
send2 scripts: change curl verbosity dynamically with an argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
themactep committed Dec 3, 2024
1 parent ee6c3d8 commit 0a81bf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion overlay/lower/usr/sbin/common
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ LOG_SIZE_LIMIT=50000
SOCKS5_CONFIG=/etc/webui/socks5.conf

curl_timeout=100
curl_verbosity="--silent" # --verbose
if [ "true" = "$verbose" ]; then
curl_verbosity="--verbose"
else
curl_verbosity="--silent"
fi

CURL="curl $curl_verbosity --connect-timeout $curl_timeout --max-time $curl_timeout"

Expand Down

0 comments on commit 0a81bf8

Please sign in to comment.