mirror of
https://github.com/deajan/obackup.git
synced 2024-11-15 04:03:41 +01:00
Rebuilt targets
This commit is contained in:
parent
71d7445c76
commit
2e2b757fd7
File diff suppressed because it is too large
Load Diff
20
install.sh
20
install.sh
@ -163,23 +163,23 @@ function GetLocalOS {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
function GetConfFileValue () {
|
function GetConfFileValue () {
|
||||||
local file="${1}"
|
local file="${1}"
|
||||||
local name="${2}"
|
local name="${2}"
|
||||||
local noError="${3:-false}"
|
local noError="${3:-false}"
|
||||||
|
|
||||||
local value
|
local value
|
||||||
|
|
||||||
value=$(grep "^$name=" "$file")
|
value=$(grep "^$name=" "$file")
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
value="${value##*=}"
|
value="${value##*=}"
|
||||||
echo "$value"
|
echo "$value"
|
||||||
else
|
else
|
||||||
if [ $noError == true ]; then
|
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
|
else
|
||||||
Logger "Cannot get value for [$name] in config file [$file]." "ERROR"
|
Logger "Cannot get value for [$name] in config file [$file]." "ERROR"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
814
obackup.sh
814
obackup.sh
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user