fix warning when logging in on tty (variable not set)

This commit is contained in:
Nils Reusse 2017-01-17 11:31:53 +01:00
parent 9f4c21cee8
commit de06162e8f
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@
# Colours
#
if (( ${terminfo[colors]} >= 8 )); then
COLORS=${terminfo[colors]}
if (( ${COLORS:=0} >= 8 )); then
# ls Colors
if (( ${+commands[dircolors]} )); then
# GNU