From 9b9a11c7c586fb90614f14643f10dcc5989f232e Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Thu, 7 Mar 2019 19:47:51 -0600 Subject: [PATCH] Fix script logic --- prepare-and-run-pylint.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/prepare-and-run-pylint.sh b/prepare-and-run-pylint.sh index e010c3e..1f99201 100644 --- a/prepare-and-run-pylint.sh +++ b/prepare-and-run-pylint.sh @@ -17,14 +17,13 @@ curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/pylint-flexible-co $PY_EXE -m pip install pylint PyYAML -PYLINT_RUNNER_ARGS="" - if ! test -f .pylintrc.yml; then curl -o .pylintrc.yml https://gitlab.tiker.net/inducer/ci-support/raw/pylint-flexible-config/.pylintrc-default.yml - PYLINT_RUNNER_ARGS="$PYLINT_RUNNER_ARGS --yaml-rcfile=.pylintrc.yml" fi -if ! test -f .pylintrc-local.yml; then +PYLINT_RUNNER_ARGS="--yaml-rcfile=.pylintr.yml" + +if test -f .pylintrc-local.yml; then PYLINT_RUNNER_ARGS="$PYLINT_RUNNER_ARGS --yaml-rcfile=.pylintrc-local.yml" fi -- GitLab