More links to the tox app script
This commit is contained in:
parent
f1571e14d7
commit
cc61a80f97
|
@ -815,25 +815,25 @@ function mesh_tox_avahi {
|
||||||
|
|
||||||
function mesh_tox_client {
|
function mesh_tox_client {
|
||||||
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
||||||
TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
||||||
else
|
else
|
||||||
TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# obtain commits from the main file
|
# obtain commits from the main file
|
||||||
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
||||||
TOXIC_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
TOXIC_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
||||||
else
|
else
|
||||||
TOXIC_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
TOXIC_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
|
||||||
fi
|
fi
|
||||||
if [ ${#TOXIC_COMMIT_MAIN} -gt 10 ]; then
|
if [ ${#TOXIC_COMMIT_MAIN} -gt 10 ]; then
|
||||||
TOXIC_COMMIT=$TOXIC_COMMIT_MAIN
|
TOXIC_COMMIT=$TOXIC_COMMIT_MAIN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
||||||
TOXIC_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
TOXIC_REPO_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
||||||
else
|
else
|
||||||
TOXIC_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
TOXIC_REPO_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
|
||||||
fi
|
fi
|
||||||
if [ ${#TOXIC_REPO_MAIN} -gt 5 ]; then
|
if [ ${#TOXIC_REPO_MAIN} -gt 5 ]; then
|
||||||
TOXIC_REPO=$TOXIC_REPO_MAIN
|
TOXIC_REPO=$TOXIC_REPO_MAIN
|
||||||
|
|
Loading…
Reference in New Issue