ant: Don't use complete-ant-cmd.pl unless it's in default $PATH.

This commit is contained in:
Ville Skyttä 2011-09-21 21:23:20 +03:00
parent 8535fdc9bf
commit 8ec55193de

View File

@ -59,7 +59,7 @@ _ant()
COMPREPLY=( $( compgen -W '$targets' -- "$cur" ) )
fi
} &&
have ant && { have complete-ant-cmd.pl && \
have ant && { type complete-ant-cmd.pl &>/dev/null && \
complete -C complete-ant-cmd.pl -F _ant ant || complete -F _ant ant; }
have phing && complete -F _ant phing