Update core.func
This commit is contained in:
parent
86bdf83bb8
commit
9505d578ed
@ -96,7 +96,7 @@ if [ -z "${VERBOSE+x}" ]; then
|
|||||||
else
|
else
|
||||||
echo "DEBUG: VERBOSE (pre): '$VERBOSE'"
|
echo "DEBUG: VERBOSE (pre): '$VERBOSE'"
|
||||||
fi
|
fi
|
||||||
VERBOSE="${1:-no}"
|
|
||||||
set_std_mode() {
|
set_std_mode() {
|
||||||
if [ "$VERBOSE" = "yes" ]; then
|
if [ "$VERBOSE" = "yes" ]; then
|
||||||
STD=""
|
STD=""
|
||||||
@ -125,7 +125,7 @@ run_curl() {
|
|||||||
curl_handler() {
|
curl_handler() {
|
||||||
local args=()
|
local args=()
|
||||||
local url=""
|
local url=""
|
||||||
local max_retries=3 # Setting a default value
|
local max_retries=3
|
||||||
local delay=2
|
local delay=2
|
||||||
local attempt=1
|
local attempt=1
|
||||||
local exit_code
|
local exit_code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user