|
@@ -815,25 +815,25 @@ function mesh_tox_avahi {
|
815
|
815
|
|
816
|
816
|
function mesh_tox_client {
|
817
|
817
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
818
|
|
- TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
|
818
|
+ TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
819
|
819
|
else
|
820
|
|
- TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
|
820
|
+ TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
821
|
821
|
fi
|
822
|
822
|
|
823
|
823
|
# obtain commits from the main file
|
824
|
824
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
825
|
|
- TOXIC_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
825
|
+ TOXIC_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
826
|
826
|
else
|
827
|
|
- TOXIC_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
|
827
|
+ TOXIC_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
828
|
828
|
fi
|
829
|
829
|
if [ ${#TOXIC_COMMIT_MAIN} -gt 10 ]; then
|
830
|
830
|
TOXIC_COMMIT=$TOXIC_COMMIT_MAIN
|
831
|
831
|
fi
|
832
|
832
|
|
833
|
833
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
834
|
|
- TOXIC_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
834
|
+ TOXIC_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
835
|
835
|
else
|
836
|
|
- TOXIC_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
|
836
|
+ TOXIC_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
837
|
837
|
fi
|
838
|
838
|
if [ ${#TOXIC_REPO_MAIN} -gt 5 ]; then
|
839
|
839
|
TOXIC_REPO=$TOXIC_REPO_MAIN
|