From b9e1e4b72d87b20a805dc1de39000a7cf5ca9aa5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 Jul 2016 17:31:56 +0100 Subject: [PATCH] Get toxcore commit from app script --- src/freedombone-image-customise | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 32486050..52bd60bb 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -627,9 +627,9 @@ function mesh_firewall { function mesh_tox_node { # obtain commits from the main file if [ -f /usr/local/bin/${PROJECT_NAME} ]; then - TOXCORE_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}') + TOXCORE_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}') else - TOXCORE_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}') + TOXCORE_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}') fi if [ ${#TOXCORE_COMMIT_MAIN} -gt 10 ]; then TOXCORE_COMMIT=$TOXCORE_COMMIT_MAIN