Skip to content
Snippets Groups Projects
Commit af4755f2 authored by Bob Mottram's avatar Bob Mottram
Browse files

Start seconds counter at start of function

parent 47b848e0
No related branches found
No related tags found
No related merge requests found
......@@ -426,6 +426,7 @@ function install_tox_client {
}
function mesh_tox_node {
SECONDS=0
# obtain commits from the main file
TOXCORE_COMMIT_MAIN=$(grep "TOXCORE_COMMIT=" "/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox" | head -n 1 | awk -F "'" '{print $2}')
if [ ${#TOXCORE_COMMIT_MAIN} -gt 10 ]; then
......@@ -533,7 +534,6 @@ EOF
systemctl enable tox-bootstrapd.service
fi
SECONDS=0
if [ ! -f "$rootdir/usr/local/bin/tox-bootstrapd" ]; then
duration=$SECONDS
echo $"Toxcore compile failed at $((duration / 60)) minutes and $((duration % 60)) seconds elapsed."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment