From 406170b92dd9379a9f4791c3c285855b36f2af84 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 27 Mar 2023 02:26:18 -0700 Subject: add support for comments in config --- backomp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backomp b/backomp index 2aa873d..ae9bbce 100755 --- a/backomp +++ b/backomp @@ -103,7 +103,7 @@ declare -A def_opts=( declare -A opts while IFS='=' read -r f1 f2; do - [[ -z "${f1}" ]] && continue + [[ -z "${f1}" ]] || [[ "${f1}" == '#'* ]] && continue if [[ "${f1}" =~ ^\[(.*)]$ ]]; then base_path="${BASH_REMATCH[1]}" -- cgit v1.2.3-70-g09d2