Skip to content

Commit

Permalink
build/ops: do_cmake.sh: get rid of which dependency
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
smithfarm committed Apr 23, 2018
1 parent a7908a9 commit 7a17722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion do_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a17722

Please sign in to comment.