Skip to content

Commit

Permalink
Address linter warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Nov 8, 2023
1 parent 1d3cca7 commit 0a7cf07
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tooling/common_logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@

set -eu

NORMAL=""
BOLD=""
RED=""
YELLOW=""
export NORMAL=""
export BOLD=""
export RED=""
export YELLOW=""

# check if stdout is a terminal...
if test -t 1; then
# see if it supports colors...
ncolors=$(tput colors)

if test -n "$ncolors" && test "$ncolors" -ge 8; then
NORMAL="$(tput sgr0)"
BOLD="$(tput bold)"
RED="$(tput setaf 1)"
YELLOW="$(tput setaf 3)"
export NORMAL="$(tput sgr0)"
export BOLD="$(tput bold)"
export RED="$(tput setaf 1)"
export YELLOW="$(tput setaf 3)"
fi
fi

Expand Down

0 comments on commit 0a7cf07

Please sign in to comment.