From ef4eb0755371c88b197bcd8ac99355063e2d39f6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 13 Apr 2019 21:57:46 -0400 Subject: src/main.sh: Replace . with eval/cat --- (limited to 'src') 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}" -- cgit v0.9.1