SC2039: In POSIX sh, 'type' is not supported.
type is commonly supported and is more portable than which(1).
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
############################################################
+# type is commonly supported and more portable than which(1)
+# shellcheck disable=SC2039
select_tdb_checker ()
{
# Find the best TDB consistency check available.
[ -n "$CTDB_LVS_NODES" ] || exit 0
export CTDB_LVS_NODES
+# type is commonly supported and more portable than which(1)
+# shellcheck disable=SC2039
if ! type ipvsadm >/dev/null 2>&1 ; then
echo "LVS configured but ipvsadm not found"
exit 0
}
# AIX (and perhaps others?) doesn't have mktemp
+# type is commonly supported and more portable than which(1)
+# shellcheck disable=SC2039
if ! type mktemp >/dev/null 2>&1 ; then
mktemp ()
{