mirror of
https://github.com/EV21/dynb.git
synced 2025-12-26 16:39:32 +01:00
Compare commits
2 Commits
0.3.4
...
122e08a42a
| Author | SHA1 | Date | |
|---|---|---|---|
|
122e08a42a
|
|||
|
2352d655a3
|
19
dynb.sh
19
dynb.sh
@@ -590,7 +590,7 @@ function handleParameters
|
||||
then rm --verbose "$_statusFile"; exit 0
|
||||
fi
|
||||
# shellcheck disable=SC2154
|
||||
if [[ $_arg_debug == "on" ]]
|
||||
if [[ $_arg_debug == "on" ]] || [[ $DYNB_DEBUG == true ]]
|
||||
then _debug=1
|
||||
fi
|
||||
# shellcheck disable=SC2154
|
||||
@@ -650,9 +650,6 @@ function handleParameters
|
||||
then _is_IPv6_enabled=true
|
||||
fi
|
||||
|
||||
if [[ $DYNB_DEBUG == true ]]
|
||||
then _debug=1
|
||||
fi
|
||||
# shellcheck disable=SC2154
|
||||
if [[ -n $DYNB_IPv4_CHECK_SITE ]]
|
||||
then _ipv4_checker=$DYNB_IPv4_CHECK_SITE
|
||||
@@ -813,11 +810,8 @@ function check_internet_connection
|
||||
fi
|
||||
}
|
||||
|
||||
function main
|
||||
function read_config_file
|
||||
{
|
||||
# shellcheck disable=SC1091,SC1090
|
||||
source "$(dirname "$(realpath "$0")")/dynb-parsing.sh"
|
||||
|
||||
# shellcheck source=.env
|
||||
if test -f "$_configFile"
|
||||
then
|
||||
@@ -831,6 +825,15 @@ function main
|
||||
source "$alternativeConfig"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function main
|
||||
{
|
||||
# shellcheck disable=SC1091,SC1090
|
||||
source "$(dirname "$(realpath "$0")")/dynb-parsing.sh"
|
||||
|
||||
read_config_file
|
||||
|
||||
if test -f "$_statusFile"
|
||||
then
|
||||
debugMessage "read previous status file"
|
||||
|
||||
Reference in New Issue
Block a user