Using -f with rm to get exit 0 if missing file

As per comments on 6572635c67
This commit is contained in:
Strahinja Val Markovic 2014-05-15 09:54:41 -07:00
parent 78610d2479
commit 6b7e736157

View File

@ -5,6 +5,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
$SCRIPT_DIR/third_party/ycmd/build.sh "$@"
# Remove old YCM libs if present so that YCM can start.
rm python/*ycm_core.* &> /dev/null
rm python/*ycm_client_support.* &> /dev/null
rm python/*clang*.* &> /dev/null
rm -f python/*ycm_core.* &> /dev/null
rm -f python/*ycm_client_support.* &> /dev/null
rm -f python/*clang*.* &> /dev/null