Line matching

This commit is contained in:
Bob Mottram 2015-11-02 12:25:47 +00:00
parent 740a26edb6
commit 7100b577f8
1 changed files with 2 additions and 2 deletions

View File

@ -36,11 +36,11 @@ extensions=()
# get the used extensions
IFS=''
while read line; do
if [[ "$line" == "<extension>"* ]]; then
if [[ "$line" == *"<extension>"* ]]; then
ext=$(echo "$line" | awk -F '>' '{print $2}' | awk -F '<' '{print $1}')
extensions+=($ext)
fi
if [[ "$line" == '</provision>' ]]; then
if [[ "$line" == *'</provision>' ]]; then
break
fi
done < $CONFIG_FILE