fix(mvn): fix listing modules in completion (#10586)

This commit is contained in:
Marc Cornellà 2022-01-13 14:29:12 +01:00 committed by GitHub
parent bddecfed58
commit aaebe4c890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ function listMavenCompletions {
done
# List modules
modules=($(find **/pom.xml -type f | grep -v '/target/classes/META-INF/' | grep '/pom.xml' |sed 's|\(.*\)/pom\.xml|\1|'))
modules=($(print -l **/pom.xml(-.N:h) | grep -v '/target/classes/META-INF/'))
reply=(
# common lifecycle