mirror of
https://github.com/EV21/dynb.git
synced 2025-12-26 16:39:32 +01:00
refactor(extract method): read_config_file
This commit is contained in:
14
dynb.sh
14
dynb.sh
@@ -813,11 +813,8 @@ function check_internet_connection
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function main
|
function read_config_file
|
||||||
{
|
{
|
||||||
# shellcheck disable=SC1091,SC1090
|
|
||||||
source "$(dirname "$(realpath "$0")")/dynb-parsing.sh"
|
|
||||||
|
|
||||||
# shellcheck source=.env
|
# shellcheck source=.env
|
||||||
if test -f "$_configFile"
|
if test -f "$_configFile"
|
||||||
then
|
then
|
||||||
@@ -831,6 +828,15 @@ function main
|
|||||||
source "$alternativeConfig"
|
source "$alternativeConfig"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function main
|
||||||
|
{
|
||||||
|
# shellcheck disable=SC1091,SC1090
|
||||||
|
source "$(dirname "$(realpath "$0")")/dynb-parsing.sh"
|
||||||
|
|
||||||
|
read_config_file
|
||||||
|
|
||||||
if test -f "$_statusFile"
|
if test -f "$_statusFile"
|
||||||
then
|
then
|
||||||
debugMessage "read previous status file"
|
debugMessage "read previous status file"
|
||||||
|
|||||||
Reference in New Issue
Block a user