abuild: only set xterm title if USE_COLOR is enabled

This commit is contained in:
Natanael Copa 2011-01-03 15:29:37 +00:00
parent a83cdde510
commit 308a1a27f4
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ error() {
set_xterm_title() {
if [ "$TERM" = xterm ]; then
if [ "$TERM" = xterm ] && [ -n "$USE_COLORS" ]; then
printf "\033]0;$1\007" >&2
fi
}