From 7a17722d455a16a64a0c52e9f75838ebeefa0258 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Mon, 19 Feb 2018 15:13:15 +0100 Subject: [PATCH] build/ops: do_cmake.sh: get rid of which dependency "which" is not available on minimal systems, whereas "type" is a shell builtin, so the chances of the command "just working" are greater with type than with which. In other parts of Ceph build/ops we have replaced "which" with "type" to good effect. Signed-off-by: Nathan Cutler --- do_cmake.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/do_cmake.sh b/do_cmake.sh index 5c15f4b58b64a..b2d7594ae91fd 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -5,7 +5,7 @@ if test -e build; then exit 1 fi -if which ccache ; then +if type ccache > /dev/null 2>&1 ; then echo "enabling ccache" ARGS="$ARGS -DWITH_CCACHE=ON" fi -- 2.39.5