summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xoedquery.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/oedquery.sh b/oedquery.sh
index a255839..239d2cf 100755
--- a/oedquery.sh
+++ b/oedquery.sh
@@ -12,15 +12,7 @@ config=(
# curl options
OPTS='--silent -L -H "app_id: $appId" -H "app_key: $appKey"'
-while read line
-do
- # If config file variable doesn't match variable in config array then ignore it.
- if [[ " ${config[@]} " =~ " $(echo "$line" | cut -d '=' -f 1) " ]]
- then
- # Declare variables
- eval $(echo "$line" | cut -d '=' -f 1)=$(echo "$line" | cut -d '=' -f 2-)
-fi
-done < oedquery.conf
+source oedquery.conf
# function to provide data to a for loop
_jq() {