From 1fc24f5e5c7ea49c4d9ed5e5fbcfd0933016a50f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 17 Oct 2016 19:00:30 +0100 Subject: [PATCH] Convert grep to array --- src/freedombone-freedns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-freedns b/src/freedombone-freedns index 26265638..af720b80 100755 --- a/src/freedombone-freedns +++ b/src/freedombone-freedns @@ -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}')