summaryrefslogtreecommitdiffstats
path: root/do_cmake.sh
diff options
context:
space:
mode:
authorNathan Cutler <ncutler@suse.com>2018-02-19 15:13:15 +0100
committerNathan Cutler <ncutler@suse.com>2018-04-23 10:50:04 +0200
commit7a17722d455a16a64a0c52e9f75838ebeefa0258 (patch)
treea072d66b0c88776bd912ac20ba5d5b90e108ac9e /do_cmake.sh
parentbuild/ops: run-make-check.sh: handle Python 2 absence (diff)
downloadceph-7a17722d455a16a64a0c52e9f75838ebeefa0258.tar.xz
ceph-7a17722d455a16a64a0c52e9f75838ebeefa0258.zip
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 <ncutler@suse.com>
Diffstat (limited to 'do_cmake.sh')
-rwxr-xr-xdo_cmake.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/do_cmake.sh b/do_cmake.sh
index 5c15f4b58b6..b2d7594ae91 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