From f32c68360166d2d26386bc70f1aa0bf005e19a4a Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Mon, 3 Jan 2022 03:22:01 +0100
Subject: [PATCH] scripts: lint-sh: ignore warnings about POSIX sh compatiblity

The following features are available in Busybox ash, so we don't need to
warn about them for runtime scripts:

- local keyword
- echo -n / -e
- String indexing

These warnings are new in shellcheck 0.7.2, which would otherwise fail
for various scripts.
---
 scripts/lint-sh.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lint-sh.sh b/scripts/lint-sh.sh
index 71ce54633..96335c7aa 100755
--- a/scripts/lint-sh.sh
+++ b/scripts/lint-sh.sh
@@ -17,7 +17,7 @@ find package -type f | while read -r file; do
 	is_scriptfile "$file" || continue
 
 	echo "Checking $file"
-	shellcheck -f gcc -x -s sh -e SC2039,SC1091,SC2155,SC2034 "$file"
+	shellcheck -f gcc -x -s sh -e SC2039,SC1091,SC2155,SC2034,SC3043,SC3037,SC3057 "$file"
 done
 
 find scripts -type f | while read -r file; do
-- 
GitLab