commit cf2dce0a00c2722b5f68412c72672dc56ede159d parent e290ec1a21caaf791fc0fff8f15708622702cbe2 Author: Frederic Cambus <fcambus@users.sourceforge.net> Date: Thu, 31 Oct 2013 18:22:05 +0100 Fixing configuration file parsing errors (Thanks @iandol) Diffstat:
M | ansiweather | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ansiweather b/ansiweather @@ -25,7 +25,7 @@ function get_config { ret="" if [ -f $config_file ] then - ret=$(grep $1 $config_file | awk -F\: '{print $2}') + ret=$(grep "^$1" $config_file | awk -F: '{print $2}') fi if [ "X$ret" = "X" ]