]> Creatis software - clitk.git/commitdiff
nice print and verbose
authorPierre Gueth <pgueth@ccage002.in2p3.fr>
Mon, 20 Jun 2011 11:09:36 +0000 (13:09 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 27 Jun 2013 12:47:28 +0000 (14:47 +0200)
cluster_tools/gate_power_merge.sh

index 1a16b54..c1c4755 100755 (executable)
@@ -19,7 +19,7 @@ function update_bar {
 local count="${1:?"provide count"}"
 local message="${2:?"provide message"}"
 local percent=$(echo "100*${count}/${count_max}" | bc)
-printf "[%03d/%03d] %3d%% %-80s\r" ${count} ${count_max} ${percent} "${message}"
+printf "[%03d/%03d] %3d%% %-80.80s\r" ${count} ${count_max} ${percent} "${message}"
 }
 
 function end_bar {