summaryrefslogtreecommitdiffstats
path: root/src/main.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-13 21:57:46 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-13 21:57:46 (EDT)
commitef4eb0755371c88b197bcd8ac99355063e2d39f6 (patch)
treeb34a128b83bbda95c68509f0ac178454a68fd694 /src/main.sh
parentdc3c805efe4bd22f933e79170a165dc5833c2348 (diff)
src/main.sh: Replace . with eval/cat
Diffstat (limited to 'src/main.sh')
-rw-r--r--src/main.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.sh b/src/main.sh
index 74a3bca..e56c076 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -111,9 +111,7 @@ _get_conf()
conf_gzip=true
conf_key=''
- if [ -f "${base_dir}/conf" ]; then
- . "${base_dir}/conf"
- fi
+ eval "$(cat "${base_dir}/conf" 2>/dev/null || :)"
old_dir="$(pwd)"
cd "${base_dir}"