Commit b002d677 authored by Bart Kamphorst's avatar Bart Kamphorst
Browse files

no need for globstar

parent 113c5a04
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@ python:pyupgrade:
        PYUPGRADE_ARGS="--py$(echo ${PYVERSION} | cut -d- -f1 | tr -d .)-plus"
        echo "[*] Detected PYUPGRADE_ARGS='auto', setting PYUPGRADE_ARGS to '$PYUPGRADE_ARGS'."
      fi
    - shopt -s globstar # enable **
    - PYUPGRADE_TARGET=$(find **/*.py | sed "/${PYTHON_EXCLUDE_REGEX}/d")
    - PYUPGRADE_TARGET=$(find . -type f -iname '*.py' | sed
      "/${PYTHON_EXCLUDE_REGEX}/d")
    - pyupgrade $PYUPGRADE_TARGET $PYUPGRADE_ARGS $PYUPGRADE_EXTRA_ARGS ||
      exit_code=$? # delay exit
    - |