test/config: fix wrong if statement in markdownlint install function

Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com>
Change-Id: I77e3cb58590c2148fa577ebf5765f61ca4d87e05
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9087
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Michal Berger <michalx.berger@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
This commit is contained in:
wawryk 2021-08-05 11:50:37 +02:00 committed by Tomasz Zawadzki
parent e258fe53a1
commit bb2d698755

View File

@ -196,13 +196,13 @@ function install_markdownlint() {
sudo -E git clone --branch "$mdl_version" "${GIT_REPO_MDL}" "/usr/src/markdownlint"
(
cd /usr/src/markdownlint
if hash gem; then
sudo -E dnf install ruby-devel
if ! hash gem; then
sudo -E dnf install ruby-devel -y
fi
if hash rake; then
if ! hash rake; then
sudo -E gem install rake
fi
if hash bundler; then
if ! hash bundler; then
sudo -E gem install bundler
fi
sudo -E rake install