summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-27 00:40:54 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-27 09:41:26 -0400
commitd197eacf8b7aba0796a0f6ac6ac1667564bd614e (patch)
tree0e3fea65d0e6c5eb06a4edd84ad486ac788eec64
parent6b688fce29389b52e6a4f6cd9d911f0fe062e714 (diff)
downloaddevtools32-d197eacf8b7aba0796a0f6ac6ac1667564bd614e.tar.xz
common.sh: unset COLOR variables in a way that is `set -u` safe.
-rw-r--r--lib/common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common.sh b/lib/common.sh
index d1d958e..7c0a9d3 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -2,7 +2,7 @@
export LANG=C
# check if messages are to be printed using color
-unset ALL_OFF BOLD BLUE GREEN RED YELLOW
+declare ALL_OFF= BOLD= BLUE= GREEN= RED= YELLOW=
if [[ -t 2 ]]; then
# prefer terminal safe colored and bold text when tput is supported
if tput setaf 0 &>/dev/null; then