Fixed GetConfig function.

pull/215/head
Joe Prochazka 2016-08-31 11:22:05 -04:00
rodzic a9a29434fc
commit ff146b2836
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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)*

Wyświetl plik

@ -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`
}