Commit 58b2438a authored by Cristian Weiland's avatar Cristian Weiland

Issue #61: Remove verification of empty strings to non-optional strings

Signed-off-by: Cristian Weiland's avatarCristian Weiland <cw14@inf.ufpr.br>
parent 21c3217e
......@@ -21,15 +21,15 @@ fi
source ./config.sh
# Check if all variables in config file are set:
if [ -z ${index+x} ]; then
if [ -z ${index} ]; then
echo "Var 'index' is unset. Set it in file 'scripts/expenses/config.sh'.";
exit;
fi
if [ -z ${host+x} ]; then
if [ -z ${host} ]; then
echo "Var 'host' is unset. Set it in file 'scripts/expenses/config.sh'.";
exit;
fi
if [ -z ${columnName+x} ]; then
if [ -z ${columnName} ]; then
echo "Var 'host' is unset. Set it in file 'scripts/expenses/config.sh'.";
exit;
fi
......
......@@ -20,15 +20,15 @@ fi
source ./config.sh
# Check if all variables in config file are set:
if [ -z ${index+x} ]; then
if [ -z ${index} ]; then
echo "Var 'index' is unset. Set it in file 'scripts/travel_allowance/config.sh'.";
exit;
fi
if [ -z ${host+x} ]; then
if [ -z ${host} ]; then
echo "Var 'host' is unset. Set it in file 'scripts/travel_allowance/config.sh'.";
exit;
fi
if [ -z ${columnName+x} ]; then
if [ -z ${columnName} ]; then
echo "Var 'host' is unset. Set it in file 'scripts/travel_allowance/config.sh'.";
exit;
fi
......
......@@ -23,15 +23,15 @@ fi
source ./config.sh
if [ -z ${index+x} ]; then
if [ -z ${index} ]; then
echo "Var 'index' is unset. Set it in file 'scripts/workers/config.sh'.";
exit;
fi
if [ -z ${host+x} ]; then
if [ -z ${host} ]; then
echo "Var 'host' is unset. Set it in file 'scripts/workers/config.sh'.";
exit;
fi
if [ -z ${columnName+x} ]; then
if [ -z ${columnName} ]; then
echo "Var 'columnName' is unset. Set it in file 'scripts/workers/config.sh'.";
exit;
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