diff --git a/test/common/config/pkgdep/git b/test/common/config/pkgdep/git index be7a0f3c82..7a06780f8f 100644 --- a/test/common/config/pkgdep/git +++ b/test/common/config/pkgdep/git @@ -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