diff options
author | Nathan Cutler <ncutler@suse.com> | 2018-02-19 15:13:15 +0100 |
---|---|---|
committer | Nathan Cutler <ncutler@suse.com> | 2018-04-23 10:50:04 +0200 |
commit | 7a17722d455a16a64a0c52e9f75838ebeefa0258 (patch) | |
tree | a072d66b0c88776bd912ac20ba5d5b90e108ac9e /do_cmake.sh | |
parent | build/ops: run-make-check.sh: handle Python 2 absence (diff) | |
download | ceph-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-x | do_cmake.sh | 2 |
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 |