From 3f86fb964e1b281371a30489c8f62c87b36dc1d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Mon, 21 Dec 2015 21:58:58 +0100 Subject: [PATCH] maven project are only calculated if there is xmllint --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 0aae8a9..6fc5a0a 100644 --- a/.zshrc +++ b/.zshrc @@ -420,7 +420,7 @@ alias mvn='mvn-color' maven_read_project() { local location parts location=$(find_up pom.xml) - if [[ ! -r "$location" ]]; then + if [[ ! -r "$location" || -z $commands[xmllint] ]]; then MAVEN_PROJECT_ARTIFACT="" MAVEN_PROJECT_VERSION="" return 1;