diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-08 12:54:06 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-08 12:54:06 (GMT) |
commit | b332ed5ab6631aef5ee8ddc075cbb967f3114079 (patch) | |
tree | ddb8743f5f34c41c7c559fafc46b53fdcdc2e2ed /scripts/functions | |
parent | ea1ed9627e7cc9651425dd4bd478e803b9720f5f (diff) |
Print the elapsed time alongside with the progress bar, such as below:
[02:27] \
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 5307268..70b9387 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 |