summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-12-29 23:16:50 +0200
committerPaul Buetow <paul@buetow.org>2024-12-29 23:16:50 +0200
commit33436c949c681360e5283a6dc61372dde6563637 (patch)
treeba809c241c3594dcfaf5ff8220e3167a4797a551 /lib
parent05702da478d3fadd6a75586132a26442391f0455 (diff)
fix --test (ShellSheck)
Diffstat (limited to 'lib')
-rw-r--r--lib/assert.source.sh2
-rw-r--r--lib/html.source.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/assert.source.sh b/lib/assert.source.sh
index 990194c..f3b3f2e 100644
--- a/lib/assert.source.sh
+++ b/lib/assert.source.sh
@@ -67,7 +67,7 @@ assert::shellcheck () {
--norc \
--external-sources \
--check-sourced \
- --exclude=SC2155,SC2010,SC2154,SC1090,SC2012,SC2016 \
+ --exclude=SC2155,SC2010,SC2154,SC1090,SC2012,SC2016,SC1091 \
./"$0"
set +e
}
diff --git a/lib/html.source.sh b/lib/html.source.sh
index 6709dfa..52fa2f4 100644
--- a/lib/html.source.sh
+++ b/lib/html.source.sh
@@ -139,7 +139,7 @@ html::source_highlight () {
if [ -n "$SOURCE_HIGHLIGHT_CSS" ]; then
style_css="--style-css-file=$SOURCE_HIGHLIGHT_CSS"
fi
- $SOURCE_HIGHLIGHT --src-lang="$language" $style_css <<< "$bare_text" |
+ $SOURCE_HIGHLIGHT --src-lang="$language" "$style_css" <<< "$bare_text" |
$SED 's|<tt>||; s|</tt>||;'
fi
}