From: Ben Crocker bcrocker@redhat.com
Use test -x instead of dnf to test for presence of shellcheck.
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 0d838fd254e5..420b863e7453 100644 --- a/redhat/self-test/0001-shellcheck.bats +++ b/redhat/self-test/0001-shellcheck.bats @@ -1,5 +1,5 @@ @test "shellcheck" { - if ! dnf list installed ShellCheck >& /dev/null + if ! test -x /usr/bin/shellcheck >& /dev/null then skip "The ShellCheck package is not installed" fi