From 0b1146b6aef61a4369922b67a29e42c992f5de6b Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sun, 26 Mar 2023 12:20:50 +0200 Subject: Improve my relationship with shellcheck --- lib/util.bash | 2 +- lib/vendor/bpt.bash | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/util.bash b/lib/util.bash index fac492c..bae620b 100644 --- a/lib/util.bash +++ b/lib/util.bash @@ -213,7 +213,7 @@ file_template_bpt() file="$1" ; shift - eval "$@ bpt.main ge \"$file\"" + eval "$* bpt.main ge \"$file\"" printf "\n" } diff --git a/lib/vendor/bpt.bash b/lib/vendor/bpt.bash index 08d15b2..cda1030 100644 --- a/lib/vendor/bpt.bash +++ b/lib/vendor/bpt.bash @@ -189,6 +189,7 @@ bpt.__lr_parse() ( # and|or|if|elif|else|for|in|include: # id: [[:alpha:]_][[:alnum:]_]* bpt.scan() ( + # shellcheck disable=SC2030 local -r ld="$1" rd="$2" error_fn="${3:-__error}" bpt.__test_delims "$ld" "$rd" || return 1 @@ -222,7 +223,9 @@ bpt.scan() ( local quote='' # Location trackers + # shellcheck disable=SC2030 local num_lines=0 + # shellcheck disable=SC2030 local num_bytes=0 # String processing tracker & buffer. -- cgit v1.1