aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmvn-phase-script.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 13b755e..ab8155e 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