Merge pull request #431 from cedwards/no_color_improvement
improve NO_COLOR detection
This commit is contained in:
@@ -38,7 +38,7 @@ enable_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# If "NO_COLOR" environment variable is present, disable output colors.
|
# If "NO_COLOR" environment variable is present, disable output colors.
|
||||||
if ! export | grep -q "NO_COLOR"; then
|
if [ -z "${NO_COLOR}" ]; then
|
||||||
enable_color
|
enable_color
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user