Line matching
This commit is contained in:
parent
740a26edb6
commit
7100b577f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue