소스 검색

Convert grep to array

Bob Mottram 8 년 전
부모
커밋
1fc24f5e5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/freedombone-freedns

+ 1
- 1
src/freedombone-freedns 파일 보기

@@ -47,7 +47,7 @@ function item_in_array {
47 47
 }
48 48
 
49 49
 detected_codes=()
50
-codelines=$(grep "_CODE=" $CONFIGURATION_FILE | uniq)
50
+codelines=($(grep "_CODE=" $CONFIGURATION_FILE | uniq))
51 51
 for line in "${codelines[@]}"
52 52
 do
53 53
     code=$(echo "$line" | awk -F '=' '{print $2}')