Unique variable name

This commit is contained in:
Bob Mottram 2016-10-08 14:16:34 +01:00
parent d13ce3fea9
commit 07381364d3
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function read_config_param {
if [ $CONFIGURATION_FILE ]; then
if [ -f $CONFIGURATION_FILE ]; then
if grep -q "${param_name}" $CONFIGURATION_FILE; then
if grep -q "${param_name}=" $CONFIGURATION_FILE; then
${param_name}=$(cat $CONFIGURATION_FILE | grep "${param_name}=" | head -n 1 | awk -F '=' '{print $2}')
fi
fi