From: Ben Crocker bcrocker@redhat.com
Using 'test -x' instead of 'dnf list installed' to test for presence of shellcheck, don't need to redirect stdout/stderr.
Signed-off-by: Ben Crocker bcrocker@redhat.com --- redhat/self-test/0001-shellcheck.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/redhat/self-test/0001-shellcheck.bats b/redhat/self-test/0001-shellcheck.bats index 420b863e7453..2fb9afbc875b 100644 --- a/redhat/self-test/0001-shellcheck.bats +++ b/redhat/self-test/0001-shellcheck.bats @@ -1,5 +1,5 @@ @test "shellcheck" { - if ! test -x /usr/bin/shellcheck >& /dev/null + if ! test -x /usr/bin/shellcheck then skip "The ShellCheck package is not installed" fi