[Freeipa-devel] [PATCH 0125] ipatests: Add which package to legacy client advice

Ana Krivokapic akrivoka at redhat.com
Thu Oct 31 11:10:51 UTC 2013


On 10/30/2013 04:18 PM, Tomas Babej wrote:
> Hi,
>
> Adds which package to the requirements, since older distros do not have it by
> default.
>
> Part of: https://fedorahosted.org/freeipa/ticket/3833
>
>
>
> _______________________________________________
> Freeipa-devel mailing list
> Freeipa-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel

You can use the bash built-in command `command`, instead of `which`, to find out
if a program exists:

command -v cacertdir_rehash

In other words, just replace `which` with `command -v`; there's no need to
install any additional packages.

-- 
Regards,

Ana Krivokapic
Associate Software Engineer
FreeIPA team
Red Hat Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20131031/cb6b6a7d/attachment.htm>


More information about the Freeipa-devel mailing list