Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (7d200da67e8630b0679b25397ffe5fe1000ddfc8)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (7d200da67e8630b0679b25397ffe5fe1000ddfc8)
  • Date: Sat, 27 Mar 2010 18:32:32 -0500

GIT changes to master cauldron by Justin Boffemmyer <flux AT sourcemage.org>:

lib/libcolor | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 7d200da67e8630b0679b25397ffe5fe1000ddfc8
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

libcolor: '$' was missing before variable usage

Somehow when I was committing before the '$' got stripped out from the
use of $LIBCOLOR_NOCOLOR in the tests in the output functions,
preventing NOCOLOR from ever having an effect. This is now fixed.

diff --git a/lib/libcolor b/lib/libcolor
index 6361452..f182202 100644
--- a/lib/libcolor
+++ b/lib/libcolor
@@ -47,7 +47,7 @@ LIBCOLOR_SYMLINK_COLOR="${LIBCOLOR_BOLD}${LIBCOLOR_CYAN}"
##

#-------------------------------------------------------------------------------
function libcolor_notice() {
- if [[ "LIBCOLOR_NOCOLOR" == "yes" ]]
+ if [[ "$LIBCOLOR_NOCOLOR" = "yes" ]]
then
echo -ne "$LIBCOLOR_BOLD"
echo -n "$*"
@@ -66,7 +66,7 @@ function libcolor_notice() {
##

#-------------------------------------------------------------------------------
function libcolor_warn() {
- if [[ "LIBCOLOR_NOCOLOR" == "yes" ]]
+ if [[ "$LIBCOLOR_NOCOLOR" = "yes" ]]
then
echo -ne "$LIBCOLOR_BOLD"
echo -n "$*"
@@ -85,7 +85,7 @@ function libcolor_warn() {
##

#-------------------------------------------------------------------------------
function libcolor_error() {
- if [[ "LIBCOLOR_NOCOLOR" == "yes" ]]
+ if [[ "$LIBCOLOR_NOCOLOR" = "yes" ]]
then
echo -ne "$LIBCOLOR_BOLD"
echo -n "$*"
@@ -104,7 +104,7 @@ function libcolor_error() {
##

#-------------------------------------------------------------------------------
function libcolor_query() {
- if [[ "LIBCOLOR_NOCOLOR" == "yes" ]]
+ if [[ "$LIBCOLOR_NOCOLOR" = "yes" ]]
then
echo -n "$*"
else
@@ -121,7 +121,7 @@ function libcolor_query() {
##

#-------------------------------------------------------------------------------
function libcolor_file() {
- if [[ "LIBCOLOR_NOCOLOR" == "yes" ]]
+ if [[ "$LIBCOLOR_NOCOLOR" = "yes" ]]
then
echo -n "$*"
else
@@ -138,7 +138,7 @@ function libcolor_file() {
##

#-------------------------------------------------------------------------------
function libcolor_symlink() {
- if [[ "LIBCOLOR_NOCOLOR" == "yes" ]]
+ if [[ "$LIBCOLOR_NOCOLOR" = "yes" ]]
then
echo -n "$*"
else



  • [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (7d200da67e8630b0679b25397ffe5fe1000ddfc8), Justin Boffemmyer, 03/27/2010

Archive powered by MHonArc 2.6.24.

Top of Page