ant: Don't use complete-ant-cmd.pl unless it's in default $PATH.
This commit is contained in:
parent
8535fdc9bf
commit
8ec55193de
@ -59,7 +59,7 @@ _ant()
|
|||||||
COMPREPLY=( $( compgen -W '$targets' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '$targets' -- "$cur" ) )
|
||||||
fi
|
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; }
|
complete -C complete-ant-cmd.pl -F _ant ant || complete -F _ant ant; }
|
||||||
have phing && complete -F _ant phing
|
have phing && complete -F _ant phing
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user