summaryrefslogtreecommitdiff
path: root/backomp
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2023-03-27 02:26:18 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2023-03-27 02:26:18 -0700
commit406170b92dd9379a9f4791c3c285855b36f2af84 (patch)
tree8533b0b90aa716f0e98a94dd4a93468b5127acdc /backomp
parent670b632fd51bfbf4a003daefa4260e9c799c9ff8 (diff)
downloadbackomp-406170b92dd9379a9f4791c3c285855b36f2af84.tar.gz
backomp-406170b92dd9379a9f4791c3c285855b36f2af84.tar.xz
add support for comments in config
Diffstat (limited to 'backomp')
-rwxr-xr-xbackomp2
1 files changed, 1 insertions, 1 deletions
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]}"