mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
nux-runner: Do not use colors when output is not tty.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
1f07be6e0d
commit
68ae08a6de
1 changed files with 41 additions and 38 deletions
|
|
@ -5,6 +5,8 @@ readonly NUX_ENV_DIR=$(dirname $NUX_INC_DIR)
|
|||
|
||||
# Color definitions
|
||||
|
||||
|
||||
if [ -t 1 ]; then
|
||||
readonly nc_bold=`tput setaf 0`
|
||||
readonly nc_bg_bold=`tput setab 0`
|
||||
readonly nc_black=`tput setab 0`
|
||||
|
|
@ -45,6 +47,7 @@ readonly NC_LightCyan='\033[1;36m'
|
|||
readonly NC_White=$nc_white
|
||||
|
||||
readonly NC_error=$NC_Red
|
||||
fi
|
||||
## #Public functions:
|
||||
##
|
||||
## ##Logging
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue