1
0
Fork 0
mirror of https://github.com/Jonny007-MKD/OTR-DecodeAll synced 2024-05-02 20:54:06 +02: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
^config$

View file

@ -108,12 +108,17 @@ function addLabel {
function funcGetConfig {
if [ ! -r "$PwD/config" ]; then
funcLog 1 "$PwD/config does not exist"
exit 1
if [ ! -r "$PwD/config.sample" ]; then
funcLog 1 "$PwD/config does not exist!"
exit 1
else
funcLog 2 "You should use $PwD/config insted of config.sample!"
. "$PwD/config.sample"
fi
else
. "$PwD/config"
funcConfigPre
fi
funcConfigPre
}
function funcPerformChecks {