2 Commits

Author SHA1 Message Date
fatalerrors
30b8b8241a bugfix 2026-04-15 14:54:49 +02:00
fatalerrors
a4056b9e82 fix line ending 2026-04-15 14:53:55 +02:00
16 changed files with 1409 additions and 1404 deletions

View File

@@ -140,9 +140,14 @@ load_theme()
continue
fi
# Strip surrounding quotes
_lth_value="${_lth_value#\"}" ; _lth_value="${_lth_value%\"}"
_lth_value="${_lth_value#\'}" ; _lth_value="${_lth_value%\'}"
# Strip surrounding quotes (handles inline trailing comments like KEY="val" # note)
if [[ "$_lth_value" == '"'* ]]; then
_lth_value="${_lth_value#\"}"
_lth_value="${_lth_value%%\"*}"
elif [[ "$_lth_value" == "'"* ]]; then
_lth_value="${_lth_value#\'}"
_lth_value="${_lth_value%%\'*}"
fi
if [[ "$_lth_value" =~ $_lth_ref_re ]]; then
# Safe colour variable reference — resolve via indirection