* [Buildroot] [git commit] package/linux-tools/S10hyperv: fix shellcheck warnings
@ 2023-03-18 22:04 Thomas Petazzoni via buildroot
2023-03-20 8:41 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-03-18 22:04 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=c4173d8b08525f260fea8a2a1e805b806bcba9fc
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
When running "make check-package" on a system with shellcheck 0.9.0,
the command fails with output:
make check-package
package/linux-tools/S10hyperv:0: run 'shellcheck' and fix the warnings
...
2 warnings generated
This commit fixes the warnings reported by the command:
shellcheck package/linux-tools/S10hyperv
This commit also fixes the four-space indent by a single tab on the
changed lines. Since this fixes the indentation warnings of
check-package, the Indent exclusion in .checkpackageignore is also
removed.
Fixes:
In package/linux-tools/S10hyperv line 27:
return $ret
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
In package/linux-tools/S10hyperv line 48:
return $ret
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
.checkpackageignore | 2 +-
package/linux-tools/S10hyperv | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.checkpackageignore b/.checkpackageignore
index 405e1c5677..04966a9b06 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -94,7 +94,7 @@ package/libftdi/0002-libftdi.pc-requires-libusb-fix-static-build.patch Sob
package/libiio/S99iiod Shellcheck Variables
package/libmad/0001-mips-h-constraint-removal.patch Sob
package/lighttpd/S50lighttpd EmptyLastLine Indent Shellcheck Variables
-package/linux-tools/S10hyperv Indent Variables
+package/linux-tools/S10hyperv Variables
package/linuxptp/S65ptp4l Indent Shellcheck
package/linuxptp/S66phc2sys Indent Shellcheck
package/lirc-tools/S25lircd Indent Variables
diff --git a/package/linux-tools/S10hyperv b/package/linux-tools/S10hyperv
index ec934bc972..32887d1b6c 100644
--- a/package/linux-tools/S10hyperv
+++ b/package/linux-tools/S10hyperv
@@ -24,7 +24,7 @@ start() {
for prog in ${PROGS}; do
start_one "${prog}" || ret=$?
done
- return $ret
+ return "$ret"
}
stop_one() {
@@ -45,7 +45,7 @@ stop() {
for prog in ${PROGS}; do
stop_one "${prog}" || ret=$?
done
- return $ret
+ return "$ret"
}
restart() {
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [git commit] package/linux-tools/S10hyperv: fix shellcheck warnings
2023-03-18 22:04 [Buildroot] [git commit] package/linux-tools/S10hyperv: fix shellcheck warnings Thomas Petazzoni via buildroot
@ 2023-03-20 8:41 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2023-03-20 8:41 UTC (permalink / raw)
To: Thomas Petazzoni via buildroot; +Cc: Thomas Petazzoni
>>>>> "Thomas" == Thomas Petazzoni via buildroot <buildroot@buildroot.org> writes:
> commit: https://git.buildroot.net/buildroot/commit/?id=c4173d8b08525f260fea8a2a1e805b806bcba9fc
> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
> When running "make check-package" on a system with shellcheck 0.9.0,
> the command fails with output:
> make check-package
> package/linux-tools/S10hyperv:0: run 'shellcheck' and fix the warnings
> ...
> 2 warnings generated
> This commit fixes the warnings reported by the command:
> shellcheck package/linux-tools/S10hyperv
> This commit also fixes the four-space indent by a single tab on the
> changed lines. Since this fixes the indentation warnings of
> check-package, the Indent exclusion in .checkpackageignore is also
> removed.
> Fixes:
> In package/linux-tools/S10hyperv line 27:
> return $ret
> ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
> In package/linux-tools/S10hyperv line 48:
> return $ret
> ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Committed to 2023.02.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-20 8:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-18 22:04 [Buildroot] [git commit] package/linux-tools/S10hyperv: fix shellcheck warnings Thomas Petazzoni via buildroot
2023-03-20 8:41 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).