[utility] fix warning when logging in on tty
... ${terminfo[colors}, variable not set. Check that the variable exists before checking for colors. Closes #125
This commit is contained in:
parent
61ff6019b1
commit
7d952adf2b
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
# Colours
|
# Colours
|
||||||
#
|
#
|
||||||
|
|
||||||
if (( ${terminfo[colors]} >= 8 )); then
|
if [[ ! -z ${terminfo[colors]} ]] && (( ${terminfo[colors]} >= 8 )); then
|
||||||
# ls Colors
|
# ls Colors
|
||||||
if (( ${+commands[dircolors]} )); then
|
if (( ${+commands[dircolors]} )); then
|
||||||
# GNU
|
# GNU
|
||||||
|
|
Loading…
Reference in a new issue