1
0
Fork 0
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:
Jonny007-MKD 2015-03-12 21:46:57 +01:00
parent 66f262bc71
commit 45a7e08903
3 changed files with 9 additions and 3 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
.log .log
^config$

View file

@ -108,12 +108,17 @@ function addLabel {
function funcGetConfig { function funcGetConfig {
if [ ! -r "$PwD/config" ]; then 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 exit 1
else else
. "$PwD/config" funcLog 2 "You should use $PwD/config insted of config.sample!"
funcConfigPre . "$PwD/config.sample"
fi fi
else
. "$PwD/config"
fi
funcConfigPre
} }
function funcPerformChecks { function funcPerformChecks {