ctdb: Change use of 'which' to 'type' in scripts.
authorJose A. Rivera <jarrpa@samba.org>
Fri, 5 Jun 2015 14:20:59 +0000 (09:20 -0500)
committerMichael Adam <obnox@samba.org>
Fri, 5 Jun 2015 18:39:47 +0000 (20:39 +0200)
commit7266c68856fab27113aaab5e622d19a76f56ac52
treef23ca5390ca24d9ff13cf6d3ac438e3d7951acb2
parenta4db3b30c5a8533943766486f72422a5eb072a62
ctdb: Change use of 'which' to 'type' in scripts.

While 'which' is a very common tool, on many distros it is not a requirement
that it be installed. 'type' is a shell built-in specified by the Open Group,
and is found in shells like bash, dash, and ksh across multiple OSes.

Signed-off-by: Jose A. Rivera <jarrpa@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun  5 20:39:47 CEST 2015 on sn-devel-104
ctdb/config/events.d/00.ctdb
ctdb/config/events.d/60.ganesha
ctdb/config/functions