From 2e70c6bf1f0d7a16c3d70512de1650bb010d13b6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 9 Jul 2025 00:13:52 +0300 Subject: fix: unbound variable in html::source_highlight --- lib/html.source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/html.source.sh') diff --git a/lib/html.source.sh b/lib/html.source.sh index 3e16264..8dab622 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -129,6 +129,7 @@ html::theme::webfonts () { html::source_highlight () { local -r bare_text="$1"; shift local -r language="$1"; shift + local tmp_file='' if [[ -z "$language" || -z "$SOURCE_HIGHLIGHT" ]]; then echo '
'
@@ -141,7 +142,6 @@ html::source_highlight () {
         fi
 
         if [[ "$language" == "AUTO" ]]; then
-            local tmp_file
             tmp_file=$(mktemp)
             trap 'rm -f "$tmp_file"' RETURN
             printf %s "$bare_text" > "$tmp_file"
-- 
cgit v1.2.3