summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-09-28 12:45:14 -0500
committerDan McGee <dan@archlinux.org>2007-09-28 12:45:14 -0500
commitd5fa2da171c9f78e3b31053fe70b5ea24962a9c8 (patch)
treecd9034b87f8dd48e1c48126e6eff799b904fb3da /scripts/makepkg.sh.in
parent5977a6ec9e50ed7777db2ebb9f41aae1dbebf3d6 (diff)
downloadpacman-d5fa2da171c9f78e3b31053fe70b5ea24962a9c8.tar.xz
makepkg: Fix output color codes for real
Make sure we reset both the bold attribute and the color attributes when it is necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index babde10e..e4b96f08 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -67,7 +67,7 @@ PACMAN_OPTS=
plain() {
local mesg=$1; shift
if [ -t 2 -a ! "$USE_COLOR" = "n" -a "$(check_buildenv color)" = "y" ]; then
- printf "\033[1;1m ${mesg}\033[0m\n" "$@" >&2
+ printf "\033[1;1m ${mesg}\033[1;0m\n" "$@" >&2
else
printf " ${mesg}\n" "$@" >&2
fi
@@ -76,7 +76,7 @@ plain() {
msg() {
local mesg=$1; shift
if [ -t 2 -a ! "$USE_COLOR" = "n" -a "$(check_buildenv color)" = "y" ]; then
- printf "\033[1;32m==>\033[1;1m ${mesg}\033[0m\n" "$@" >&2
+ printf "\033[1;32m==>\033[1;0m\033[1;1m ${mesg}\033[1;0m\n" "$@" >&2
else
printf "==> ${mesg}\n" "$@" >&2
fi
@@ -85,7 +85,7 @@ msg() {
msg2() {
local mesg=$1; shift
if [ -t 2 -a ! "$USE_COLOR" = "n" -a "$(check_buildenv color)" = "y" ]; then
- printf "\033[1;34m ->\033[1;1m ${mesg}\033[0m\n" "$@" >&2
+ printf "\033[1;34m ->\033[1;0m\033[1;1m ${mesg}\033[1;0m\n" "$@" >&2
else
printf " -> ${mesg}\n" "$@" >&2
fi
@@ -94,7 +94,7 @@ msg2() {
warning() {
local mesg=$1; shift
if [ -t 2 -a ! "$USE_COLOR" = "n" -a "$(check_buildenv color)" = "y" ]; then
- printf "\033[1;33m==> $(gettext "WARNING:")\033[1;1m ${mesg}\033[0m\n" "$@" >&2
+ printf "\033[1;33m==> $(gettext "WARNING:")\033[1;0m\033[1;1m ${mesg}\033[1;0m\n" "$@" >&2
else
printf "==> $(gettext "WARNING:") ${mesg}\n" "$@" >&2
fi
@@ -103,7 +103,7 @@ warning() {
error() {
local mesg=$1; shift
if [ -t 2 -a ! "$USE_COLOR" = "n" -a "$(check_buildenv color)" = "y" ]; then
- printf "\033[1;31m==> $(gettext "ERROR:")\033[1;1m ${mesg}\033[0m\n" "$@" >&2
+ printf "\033[1;31m==> $(gettext "ERROR:")\033[1;0m\033[1;1m ${mesg}\033[1;0m\n" "$@" >&2
else
printf "==> $(gettext "ERROR:") ${mesg}\n" "$@" >&2
fi