c51823c04eee3889a17a957790ae5bf7f07fd5eb

Author
Paweł Lenart <pawel.lenart@xstream.net>
Committer
Jesse Donat <j.donat@capstonedigital.com>
Date

Message

Remove warning lines from phing completion

Remove "Warning:" lines from phing targets list. Warning lines are
returned by phing when a target has no tasks or dependencies.

# Conflicts:
#	plugins/phing/phing.plugin.zsh

Diff

 1diff --git a/plugins/phing/phing.plugin.zsh b/plugins/phing/phing.plugin.zsh
 2index 60f59c3b08e290137cdb09e1da89c2c740bbddcf..d5a2649bf22de555066d9a39037b7d08b2711a43 100644
 3--- a/plugins/phing/phing.plugin.zsh
 4+++ b/plugins/phing/phing.plugin.zsh
 5@@ -1,6 +1,6 @@
 6 _phing () {
 7   if [ -f build.xml ]; then
 8-    compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}')
 9+    compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|grep -v "Warning:"|awk '{print $1}')
10   fi
11 }
12