diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-09-21 21:23:20 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-09-21 21:23:20 +0300 |
commit | 8ec55193de633332cfe66efaae8d1a33ab2bde31 (patch) | |
tree | e1590ec91c09c9bd22bafbf8cbb9e7e7c850377b | |
parent | 8535fdc9bf5d5f49780bb5ceae609ad4abdf77cb (diff) | |
download | bash-completion-8ec55193de633332cfe66efaae8d1a33ab2bde31.tar.gz |
ant: Don't use complete-ant-cmd.pl unless it's in default $PATH.
-rw-r--r-- | completions/ant | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/ant b/completions/ant index 80f8de68..4ba13ab8 100644 --- a/completions/ant +++ b/completions/ant @@ -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 |