Fix usage on install.sh
This commit is contained in:
parent
2f3303e050
commit
41294f7a76
11
install.sh
11
install.sh
@ -35,18 +35,25 @@ function linux_cmake_install {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $# -gt 1 ]]; then
|
function usage {
|
||||||
echo "Usage: $0 [--clang-completer]"
|
echo "Usage: $0 [--clang-completer]"
|
||||||
exit 0
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $# -gt 1 ]]; then
|
||||||
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--clang-completer)
|
--clang-completer)
|
||||||
cmake_args='-DUSE_CLANG_COMPLETER=ON'
|
cmake_args='-DUSE_CLANG_COMPLETER=ON'
|
||||||
;;
|
;;
|
||||||
*)
|
'')
|
||||||
cmake_args=''
|
cmake_args=''
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ ! -z `which cmake &> /dev/null` ]]; then
|
if [[ ! -z `which cmake &> /dev/null` ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user