Fix build failure of Arrow and Parquet when the folder is empty. (#2720)

This commit is contained in:
Yuhong Guo
2018-08-23 09:44:26 -07:00
committed by Philipp Moritz
parent eec1a3eb89
commit 344a83f327
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -45,7 +45,10 @@ build_arrow() {
rm -rf $TP_DIR/build/arrow/cpp/build/CMakeCache.txt
fi
if [[ ! -d $TP_DIR/build/arrow ]]; then
if [[ ! -d $TP_DIR/build/arrow/.git ]]; then
if [[ -d $TP_DIR/build/arrow ]]; then
rm -rf $TP_DIR/build/arrow
fi
git clone -q https://github.com/apache/arrow.git "$TP_DIR/build/arrow"
fi
+4 -1
View File
@@ -50,7 +50,10 @@ build_parquet() {
fi
}
if [ ! -d $TP_DIR/build/parquet-cpp ]; then
if [ ! -d $TP_DIR/build/parquet-cpp/.git ]; then
if [[ -d $TP_DIR/build/parquet-cpp ]]; then
rm -rf $TP_DIR/build/parquet-cpp
fi
git clone -q https://github.com/apache/parquet-cpp.git "$TP_DIR/build/parquet-cpp"
pushd $TP_DIR/build/parquet-cpp
git fetch origin master