diff options
-rwxr-xr-x | mvn-phase-script.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh index 13b755e8..ab8155e0 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -50,9 +50,9 @@ run_tox_test() if [[ ${CURDIR} =~ "-sonar" ]] then echo "====Sonar job, need execute tox." - TOXINIS=$(find . -name "tox.ini") + TOXINIS=($(find . -name "tox.ini")) for TOXINI in "${TOXINIS[@]}"; do - DIR=$(echo "$TOXINI" | rev | cut -f3- -d'/' | rev) + DIR=$(dirname "$TOXINI") cd "${CURDIR}/${DIR}" rm -rf ./venv-tox ./.tox virtualenv ./venv-tox |