From 57add2e1a3f1bd320483249185bd5031d04e6d0a Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 20 Sep 2024 17:10:28 +0200 Subject: [PATCH] packaging: add weak dependency on ShellCheck ... so that `run-shellcheck.sh` works out of the box. Related: https://issues.redhat.com/browse/OSH-738 Closes: https://github.com/csutils/csmock/pull/185 --- make-srpm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make-srpm.sh b/make-srpm.sh index 09aa6cc..8092c8d 100755 --- a/make-srpm.sh +++ b/make-srpm.sh @@ -224,6 +224,9 @@ This package contains the shellcheck plug-in for csmock. %package plugin-shellcheck-core Conflicts: csmock-plugin-shellcheck < %{version}-%{release} Summary: script to run shellcheck on a directory tree +%if 0%{?rhel} != 7 +Recommends: ShellCheck +%endif %description plugin-shellcheck-core This package contains the run-shellcheck.sh script to run shellcheck on a directory tree.