Browse Source

Check directory

Bob Mottram 8 years ago
parent
commit
b07be78a84
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-app-tox

+ 3
- 1
src/freedombone-app-tox View File

@@ -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