commit: 453ef9abe375b15de7d2055da5f91c62ed0f17f1
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sat Jul 5 21:17:47 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 13 04:19:03 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=453ef9ab
emerge-webrsync: mute an instance of SC2153 that is a false-positive
The get_fetchcommand() function begins with a conditional expression
that assesses the value of the 'FETCHCOMMAND' portage variable, causing
an SC2153 warning in shellcheck. Mute it by exempting the function in
its entirety.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/emerge-webrsync | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync
index 6f32a484ae..69f18302b8 100755
--- a/bin/emerge-webrsync
+++ b/bin/emerge-webrsync
@@ -199,6 +199,7 @@ fetch_file() {
fi
}
+# shellcheck disable=2153
get_fetchcommand() {
local cmd_name cmd_args opts
@@ -207,7 +208,6 @@ get_fetchcommand() {
return 1
fi
- # shellcheck disable=2153
read -rd '' cmd_name cmd_args <<<"${FETCHCOMMAND}"
case ${cmd_name} in