From 48031ab89a23ce6f03d192367b8692d439304486 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 15 May 2014 19:21:04 -0700 Subject: [PATCH] Error message for no ycmd submodule checkout --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5a4503a7..0d7dc4f3 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,15 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -$SCRIPT_DIR/third_party/ycmd/build.sh "$@" +build_file=$SCRIPT_DIR/third_party/ycmd/build.sh + +if [[ ! -f "$build_file" ]]; then + echo "File $build_file doesn't exist; you probably forgot to run:" + printf "\n\tgit submodule update --init --recursive\n\n" + exit 1 +fi + +$build_file "$@" # Remove old YCM libs if present so that YCM can start. rm -f python/*ycm_core.* &> /dev/null