mirror of
https://github.com/Jonny007-MKD/OTR-DecodeAll
synced 2025-01-22 08:49:50 +01:00
Moving config to config.sample
This commit is contained in:
parent
66f262bc71
commit
45a7e08903
3 changed files with 9 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
.log
|
||||
^config$
|
||||
|
|
11
otrDecodeAll
11
otrDecodeAll
|
@ -108,12 +108,17 @@ function addLabel {
|
|||
|
||||
function funcGetConfig {
|
||||
if [ ! -r "$PwD/config" ]; then
|
||||
funcLog 1 "$PwD/config does not exist"
|
||||
if [ ! -r "$PwD/config.sample" ]; then
|
||||
funcLog 1 "$PwD/config does not exist!"
|
||||
exit 1
|
||||
else
|
||||
. "$PwD/config"
|
||||
funcConfigPre
|
||||
funcLog 2 "You should use $PwD/config insted of config.sample!"
|
||||
. "$PwD/config.sample"
|
||||
fi
|
||||
else
|
||||
. "$PwD/config"
|
||||
fi
|
||||
funcConfigPre
|
||||
}
|
||||
|
||||
function funcPerformChecks {
|
||||
|
|
Loading…
Reference in a new issue