lsb-functions: fix logic of RC_NOCOLOR check for RC_ENDCOL
authorMichael Prokop <mika@grml.org>
Sun, 27 Nov 2011 20:52:01 +0000 (21:52 +0100)
committerMichael Prokop <mika@grml.org>
Sun, 27 Nov 2011 20:52:01 +0000 (21:52 +0100)
etc/grml/lsb-functions

index ceffb0c..d95be1d 100644 (file)
@@ -177,9 +177,9 @@ RC_NOCOLOR="${RC_NOCOLOR:-no}"
 
 # Can the terminal handle endcols?
 if [ "${RC_NOCOLOR}" = "yes" ]; then
-  RC_ENDCOL="yes"
-else
   RC_ENDCOL="no"
+else
+  RC_ENDCOL="yes"
 fi
 
 # Setup COLS and ENDCOL so eend can line up the [ ok ]