diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 96b92ecd..f5988d70 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -469,9 +469,11 @@ function mesh_tox_node { if [ ! -d ${rootdir}${INSTALL_DIR} ]; then mkdir -p ${rootdir}${INSTALL_DIR} fi - git clone ${TOXCORE_REPO} ${rootdir}${INSTALL_DIR}/toxcore - if [ ! "$?" = "0" ]; then - exit 429252 + if [ ! -d ${rootdir}${INSTALL_DIR}/toxcore ]; then + git clone ${TOXCORE_REPO} ${rootdir}${INSTALL_DIR}/toxcore + if [ ! "$?" = "0" ]; then + exit 429252 + fi fi cd ${rootdir}$INSTALL_DIR/toxcore git checkout $TOXCORE_COMMIT -b $TOXCORE_COMMIT