From 7100b577f8ad2b4e9c8e6aaacb5955cf4f63cae9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Nov 2015 12:25:47 +0000 Subject: [PATCH] Line matching --- src/freedombone-sipfreeext | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-sipfreeext b/src/freedombone-sipfreeext index fa0060eb..5fbb07b2 100755 --- a/src/freedombone-sipfreeext +++ b/src/freedombone-sipfreeext @@ -36,11 +36,11 @@ extensions=() # get the used extensions IFS='' while read line; do - if [[ "$line" == ""* ]]; then + if [[ "$line" == *""* ]]; then ext=$(echo "$line" | awk -F '>' '{print $2}' | awk -F '<' '{print $1}') extensions+=($ext) fi - if [[ "$line" == '' ]]; then + if [[ "$line" == *'' ]]; then break fi done < $CONFIG_FILE