From b332ed5ab6631aef5ee8ddc075cbb967f3114079 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 8 May 2007 12:54:06 +0000 Subject: Print the elapsed time alongside with the progress bar, such as below: [02:27] \ --- scripts/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/functions') diff --git a/scripts/functions b/scripts/functions index 5307268c..70b9387a 100644 --- a/scripts/functions +++ b/scripts/functions @@ -88,7 +88,7 @@ CT_DoLog() { color="CT_${cur_L}_COLOR" normal="CT_NORMAL_COLOR" if [ ${cur_l} -le ${max_level} ]; then - echo -e "${!color}${l}${!normal}" + echo -e "\r${!color}${l}${!normal}" else ${CT_PROG_BAR} fi @@ -267,8 +267,10 @@ CT_GetFile() { ext=`CT_GetFileExtension "${file}"` if [ -n "${ext}" ]; then if [ "${CT_FORCE_DOWNLOAD}" = "y" ]; then + CT_DoLog DEBUG "Removing already present \"${file}\"" rm -f "${CT_TARBALLS_DIR}/${file}${ext}" else + CT_DoLog EXTRA "Already have \"${file}\"" return 0 fi fi -- cgit v1.2.3