diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-26 12:20:50 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-26 12:20:50 +0200 |
commit | 0b1146b6aef61a4369922b67a29e42c992f5de6b (patch) | |
tree | 15aec245eb09cf23e1b34cece4f5b3e895769eaa /lib | |
parent | 477139d686db84d28e43ccc854276d7aad239114 (diff) |
Improve my relationship with shellcheck
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.bash | 2 | ||||
-rw-r--r-- | lib/vendor/bpt.bash | 3 |
2 files changed, 4 insertions, 1 deletions
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: <as is> # 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. |