ok sorry I think that this is static, but should be a progress .. it's not simple then, but anyway for me I've used this code as static text to see at least some output and not to kill script in the middle of execution:
log_progress_msg () { GREEN=`$TPUT setaf 2` NORMAL=`$TPUT op` printf " $GREEN*$NORMAL $@" || true }
ok sorry I think that this is static, but should be a progress .. it's not simple then, but anyway for me I've used this code as static text to see at least some output and not to kill script in the middle of execution:
log_progress_msg () {
GREEN=`$TPUT setaf 2`
NORMAL=`$TPUT op`
printf " $GREEN*$NORMAL $@" || true
}