Line matching
This commit is contained in:
parent
740a26edb6
commit
7100b577f8
|
@ -36,11 +36,11 @@ extensions=()
|
||||||
# get the used extensions
|
# get the used extensions
|
||||||
IFS=''
|
IFS=''
|
||||||
while read line; do
|
while read line; do
|
||||||
if [[ "$line" == "<extension>"* ]]; then
|
if [[ "$line" == *"<extension>"* ]]; then
|
||||||
ext=$(echo "$line" | awk -F '>' '{print $2}' | awk -F '<' '{print $1}')
|
ext=$(echo "$line" | awk -F '>' '{print $2}' | awk -F '<' '{print $1}')
|
||||||
extensions+=($ext)
|
extensions+=($ext)
|
||||||
fi
|
fi
|
||||||
if [[ "$line" == '</provision>' ]]; then
|
if [[ "$line" == *'</provision>' ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done < $CONFIG_FILE
|
done < $CONFIG_FILE
|
||||||
|
|
Loading…
Reference in New Issue