fix(mvn): handle directories in `<relativePath>` (#12957)

master
Daniel Mensinger 1 year ago committed by GitHub
parent 2b547d113b
commit db32c6ccce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      plugins/mvn/mvn.plugin.zsh

@ -101,8 +101,14 @@ function listMavenCompletions {
new_file="../pom.xml"
fi
# if file doesn't exist break
file="${file:h}/${new_file}"
# if the file points to a directory, assume it is a pom.xml in that directory
if [[ -d "$file" ]]; then
file="${file}/pom.xml"
fi
# if file doesn't exist break
if ! [[ -e "$file" ]]; then
break
fi

Loading…
Cancel
Save