Skip to content

Commit

Permalink
Error message for no ycmd submodule checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Valloric committed May 16, 2014
1 parent f9d9d0e commit 48031ab
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48031ab

Please sign in to comment.