Commit 939919bf authored by Cristian Weiland's avatar Cristian Weiland

Merge branch 'issue/68' into 'master'

Issue #68: Fix bug in variable checking

See merge request !28
parents 04d42b25 c2b9209e
...@@ -21,16 +21,16 @@ fi ...@@ -21,16 +21,16 @@ fi
source ./config.sh source ./config.sh
# Check if all variables in config file are set: # Check if all variables in config file are set:
if [ -z ${index} ]; then if [ -z "${index}" ]; then
echo "Var 'index' is unset. Set it in file 'scripts/expenses/config.sh'."; echo "Var 'index' is unset. Set it in file 'scripts/expenses/config.sh'.";
exit; exit;
fi fi
if [ -z ${host} ]; then if [ -z "${host}" ]; then
echo "Var 'host' is unset. Set it in file 'scripts/expenses/config.sh'."; echo "Var 'host' is unset. Set it in file 'scripts/expenses/config.sh'.";
exit; exit;
fi fi
if [ -z ${columnName} ]; then if [ -z "${columnName}" ]; then
echo "Var 'host' is unset. Set it in file 'scripts/expenses/config.sh'."; echo "Var 'columnName' is unset. Set it in file 'scripts/expenses/config.sh'.";
exit; exit;
fi fi
......
...@@ -20,15 +20,15 @@ fi ...@@ -20,15 +20,15 @@ fi
source ./config.sh source ./config.sh
# Check if all variables in config file are set: # Check if all variables in config file are set:
if [ -z ${index} ]; then if [ -z "${index}" ]; then
echo "Var 'index' is unset. Set it in file 'scripts/travel_allowance/config.sh'."; echo "Var 'index' is unset. Set it in file 'scripts/travel_allowance/config.sh'.";
exit; exit;
fi fi
if [ -z ${host} ]; then if [ -z "${host}" ]; then
echo "Var 'host' is unset. Set it in file 'scripts/travel_allowance/config.sh'."; echo "Var 'host' is unset. Set it in file 'scripts/travel_allowance/config.sh'.";
exit; exit;
fi fi
if [ -z ${columnName} ]; then if [ -z "${columnName}" ]; then
echo "Var 'host' is unset. Set it in file 'scripts/travel_allowance/config.sh'."; echo "Var 'host' is unset. Set it in file 'scripts/travel_allowance/config.sh'.";
exit; exit;
fi fi
......
...@@ -23,15 +23,15 @@ fi ...@@ -23,15 +23,15 @@ fi
source ./config.sh source ./config.sh
if [ -z ${index} ]; then if [ -z "${index}" ]; then
echo "Var 'index' is unset. Set it in file 'scripts/workers/config.sh'."; echo "Var 'index' is unset. Set it in file 'scripts/workers/config.sh'.";
exit; exit;
fi fi
if [ -z ${host} ]; then if [ -z "${host}" ]; then
echo "Var 'host' is unset. Set it in file 'scripts/workers/config.sh'."; echo "Var 'host' is unset. Set it in file 'scripts/workers/config.sh'.";
exit; exit;
fi fi
if [ -z ${columnName} ]; then if [ -z "${columnName}" ]; then
echo "Var 'columnName' is unset. Set it in file 'scripts/workers/config.sh'."; echo "Var 'columnName' is unset. Set it in file 'scripts/workers/config.sh'.";
exit; exit;
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment