From dc2cd9e3f8d4f5b7391281519d80ebe6ef25b21c Mon Sep 17 00:00:00 2001 From: Ido Ben-Hur Date: Thu, 5 Sep 2024 15:49:35 +0300 Subject: [PATCH] Add time running to message --- makeBuild.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makeBuild.sh b/makeBuild.sh index 5babe0c..25e3809 100755 --- a/makeBuild.sh +++ b/makeBuild.sh @@ -240,10 +240,12 @@ prog_send() else alt=":" fi + get_time targets=$(cut -d "," -f 1 <<< "$statusTxt") || continue percent=$(cut -d "," -f 2 <<< "$statusTxt") || continue progMsg="${initMsg}\n[${targets}] targets ${alt} ${percent}%" || continue progMsg="${progMsg}\n$(get_bar "$percent")" || continue + progMsg="${progMsg}\nTime running: ${buildTime}" || continue progMsg="${progMsg}\n\n$(get_stats)" || continue ./telegramSend.sh --tmp "${tmpDir}" --config "${TG_SEND_CFG_FILE}" --edit --disable-preview "${progMsg}" || continue trap - SIGTERM