Convert grep to array
This commit is contained in:
parent
cadb6ca46e
commit
1fc24f5e5c
|
@ -47,7 +47,7 @@ function item_in_array {
|
|||
}
|
||||
|
||||
detected_codes=()
|
||||
codelines=$(grep "_CODE=" $CONFIGURATION_FILE | uniq)
|
||||
codelines=($(grep "_CODE=" $CONFIGURATION_FILE | uniq))
|
||||
for line in "${codelines[@]}"
|
||||
do
|
||||
code=$(echo "$line" | awk -F '=' '{print $2}')
|
||||
|
|
Loading…
Reference in New Issue