1
0
mirror of https://github.com/deajan/obackup.git synced 2024-11-14 19:53:42 +01:00

Rebuilt targets

This commit is contained in:
deajan 2018-02-24 17:41:57 +01:00
parent 71d7445c76
commit 2e2b757fd7
3 changed files with 954 additions and 725 deletions

File diff suppressed because it is too large Load Diff

View File

@ -163,23 +163,23 @@ function GetLocalOS {
fi
}
function GetConfFileValue () {
local file="${1}"
local name="${2}"
local file="${1}"
local name="${2}"
local noError="${3:-false}"
local value
local value
value=$(grep "^$name=" "$file")
if [ $? == 0 ]; then
value="${value##*=}"
echo "$value"
else
value=$(grep "^$name=" "$file")
if [ $? == 0 ]; then
value="${value##*=}"
echo "$value"
else
if [ $noError == true ]; then
Logger "Cannot get value for [$name] in config file [$file]." "NOTICE"
Logger "Cannot get value for [$name] in config file [$file]." "NOTICE"
else
Logger "Cannot get value for [$name] in config file [$file]." "ERROR"
fi
fi
fi
}

File diff suppressed because it is too large Load Diff