Sfoglia il codice sorgente

matrix build directory

Bob Mottram 8 anni fa
parent
commit
3653430413
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4
    1
      src/freedombone-app-matrix

+ 4
- 1
src/freedombone-app-matrix Vedi File

@@ -303,7 +303,10 @@ function install_matrix {
303 303
     cd /etc/matrix
304 304
     git checkout $MATRIX_COMMIT -b $MATRIX_COMMIT
305 305
     set_completion_param "matrix commit" "$MATRIX_COMMIT"
306
-    pip install --upgrade --process-dependency-links .
306
+    if [ ! -d $INSTALL_DIR/matrix ]; then
307
+        mkdir -p $INSTALL_DIR/matrix
308
+    fi
309
+    pip install --upgrade --process-dependency-links . -b $INSTALL_DIR/matrix
307 310
     if [ ! "$?" = "0" ]; then
308 311
         exit 782542
309 312
     fi