1
1
Fork 0
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:
Tony Tkáčik 2017-06-29 14:26:11 +02:00
parent 1f07be6e0d
commit 68ae08a6de

View file

@ -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