This commit is contained in:
fatalerrors
2026-04-15 14:54:49 +02:00
parent a4056b9e82
commit 30b8b8241a

View File

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