Browse Source

Install dir

Bob Mottram 9 years ago
parent
commit
2c0fd8cfa0
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/freedombone-mesh-install

+ 5
- 0
src/freedombone-mesh-install View File

@@ -71,6 +71,9 @@ ZERONET_REPO=
71 71
 ZERONET_COMMIT=
72 72
 ZERONET_PORT=
73 73
 
74
+# Directory where source code is downloaded and compiled
75
+INSTALL_DIR=$HOME/build
76
+
74 77
 function show_help {
75 78
     echo ''
76 79
     echo $"${PROJECT_NAME}-mesh-install -f [function] -r [rootdir]"
@@ -592,6 +595,8 @@ function mesh_tox_client {
592 595
     $CHROOT_PREFIX git checkout $TOXIC_COMMIT -b $TOXIC_COMMIT
593 596
     if ! grep -q "Toxic commit" $rootdir$COMPLETION_FILE; then
594 597
         echo "Toxic commit:$TOXIC_COMMIT" >> $rootdir$COMPLETION_FILE
598
+    else
599
+        sed -i "s|Toxic commit.*|Toxic commit:$TOXIC_COMMIT|g" $rootdir$COMPLETION_FILE
595 600
     fi
596 601
     
597 602
     $CHROOT_PREFIX make