From ff146b28361b5b1aea713f68402856f2c14ac670 Mon Sep 17 00:00:00 2001 From: Joe Prochazka Date: Wed, 31 Aug 2016 11:22:05 -0400 Subject: [PATCH] Fixed GetConfig function. --- CHANGELOG.md | 3 ++- bash/functions.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbcead3..3417968 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,11 @@ The following is a history of the changes made to this project. -## v2.2.0 *(August 30th, 2016)* +## v2.2.0 *(August 31st, 2016)* * ADS-B Exchange script now sets up mlat-client to connect to their mlat-server. * Added the ability to disply either the dump1090-fa or dump1090-mutability map. +* Changed the bash function which retrieves config file variables so it works properly. ## v2.1.0 *(August 30th, 2016)* diff --git a/bash/functions.sh b/bash/functions.sh index 8ee9ff2..fabdca1 100755 --- a/bash/functions.sh +++ b/bash/functions.sh @@ -97,4 +97,5 @@ function GetConfig { # Use sed to locate the "KEY" then read the "VALUE", the portion after the equals sign, in the specified "FILE". # This function should work with any configuration file with settings formated as KEY="VALUE". sudo sed -n '/^$1=\(.*\)$/s//\1/p' $2 + echo `sed -n "/^$1=\"\(.*\)\"$/s//\1/p" $2` }