tazpanel diff lib/libtazpanel @ rev 99
move filter_taztools_msgs to lib/libtaz
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 14 21:00:28 2011 +0200 (2011-04-14) |
parents | 2392cabdcc3d |
children | b898c9887a62 |
line diff
1.1 --- a/lib/libtazpanel Thu Apr 14 20:13:49 2011 +0200 1.2 +++ b/lib/libtazpanel Thu Apr 14 21:00:28 2011 +0200 1.3 @@ -43,10 +43,15 @@ 1.4 esac 1.5 } 1.6 1.7 +# Remove status and ESC char from tazpkg/tazlito commands output 1.8 +filter_taztools_msgs() { 1.9 + grep ^[a-zA-Z0-9] | sed s'/\.*\]//' 1.10 +} 1.11 + 1.12 # LOG activities 1.13 log() { 1.14 date=$(date "+%Y-%m-%d %H:%M") 1.15 - grep ^[a-zA-Z0-9] | sed s'/\.*\]//' | \ 1.16 + filter_taztools_msgs | \ 1.17 sed s"#[^']*#$date : \0#" >> $LOG_FILE 1.18 } 1.19