From: Nathan Cutler Date: Mon, 19 Feb 2018 14:13:15 +0000 (+0100) Subject: build/ops: do_cmake.sh: get rid of which dependency X-Git-Tag: v13.1.0~96^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7a17722d455a16a64a0c52e9f75838ebeefa0258;p=ceph.git 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 --- diff --git a/do_cmake.sh b/do_cmake.sh index 5c15f4b58b64..b2d7594ae91f 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