From 45a7e0890304eb9088f02c1976e8037e18e7125d Mon Sep 17 00:00:00 2001 From: Jonny007-MKD Date: Thu, 12 Mar 2015 21:46:57 +0100 Subject: [PATCH] Moving config to config.sample --- .gitignore | 1 + config => config.sample | 0 otrDecodeAll | 11 ++++++++--- 3 files changed, 9 insertions(+), 3 deletions(-) rename config => config.sample (100%) diff --git a/.gitignore b/.gitignore index 6ab38c8..71bbbeb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .log +^config$ diff --git a/config b/config.sample similarity index 100% rename from config rename to config.sample diff --git a/otrDecodeAll b/otrDecodeAll index 3f9a4a3..bf3b665 100755 --- a/otrDecodeAll +++ b/otrDecodeAll @@ -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 {