moved some things to common.sh

This commit is contained in:
2026-04-05 06:39:30 +00:00
parent 1376bf3411
commit 78d2c944c0
4 changed files with 36 additions and 12 deletions
-10
View File
@@ -14,16 +14,6 @@ source "$SCRIPT_DIR/../common.sh"
RSYNC_SCRIPT="$SCRIPT_DIR/../Rsync/rsync.sh"
# -----------------------------------------------------------------------------------------------
# Duration Formatter
# -----------------------------------------------------------------------------------------------
format_duration() {
local secs=$1
local mins=$((secs / 60))
local rem=$((secs % 60))
[[ $mins -gt 0 ]] && echo "${mins}m${rem}s" || echo "${rem}s"
}
# -----------------------------------------------------------------------------------------------
# Tracking
# -----------------------------------------------------------------------------------------------