summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--completions/ant2
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