Skip to content
Snippets Groups Projects
Commit d759443c authored by Simon McVittie's avatar Simon McVittie
Browse files

t: Don't warn about use of local in shell scripts


POSIX leaves it undefined, but Debian Policy requires a shell that
supports it.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent ad7008c1
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,9 @@ for shell_script in \ ...@@ -43,7 +43,9 @@ for shell_script in \
t/shellcheck.t \ t/shellcheck.t \
; do ; do
n=$((n + 1)) n=$((n + 1))
if shellcheck "$shell_script"; then
# Ignore SC2039: we assume a Debian-style shell that has 'local'.
if shellcheck --exclude=SC2039 "$shell_script"; then
echo "ok $n - $shell_script" echo "ok $n - $shell_script"
else else
echo "not ok $n # TODO - $shell_script" echo "not ok $n # TODO - $shell_script"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment