瀏覽代碼

Check directory

Bob Mottram 8 年之前
父節點
當前提交
b07be78a84
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      src/freedombone-app-tox

+ 3
- 1
src/freedombone-app-tox 查看文件

@@ -377,7 +377,9 @@ function mesh_tox_node {
377 377
 	$mesh_tox_node_prefix apt-get -y install libconfig9 libconfig-dev autoconf
378 378
 	$mesh_tox_node_prefix apt-get -y install libopus-dev libvpx-dev
379 379
 
380
-	mkdir -p ${rootdir}${INSTALL_DIR}
380
+	if [ ! -d ${rootdir}${INSTALL_DIR} ]; then
381
+		mkdir -p ${rootdir}${INSTALL_DIR}
382
+	fi
381 383
 	git clone ${TOXCORE_REPO} ${rootdir}${INSTALL_DIR}/toxcore
382 384
 	if [ ! "$?" = "0" ]; then
383 385
 		exit 429252