Skip to content

Commit

Permalink
CHeck boost_1_57_0.tar.gz Before Remove (#891)
Browse files Browse the repository at this point in the history
ensure the boost_1_57_0.tar.gz exists before remove action.
  • Loading branch information
snow4young authored and bluebore committed May 11, 2017
1 parent 9cdef8c commit db8a975
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ cd ${DEPS_SOURCE}
# boost
if [ ! -f "${FLAG_DIR}/boost_1_57_0" ] \
|| [ ! -d "${DEPS_PREFIX}/boost_1_57_0/boost" ]; then
rm boost_1_57_0.tar.gz
if [ -e boost_1_57_0.tar.gz ]; then
rm boost_1_57_0.tar.gz
fi
wget https://raw.githubusercontent.com/lylei9/boost_1_57_0/master/boost_1_57_0.tar.gz
tar zxf boost_1_57_0.tar.gz
rm -rf ${DEPS_PREFIX}/boost_1_57_0
Expand Down

0 comments on commit db8a975

Please sign in to comment.