From 7e738636523b9f8c1d5895fd551852ff54ebf635 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Sat, 13 Jul 2019 14:29:14 +0200 Subject: gen_funcs.sh: Refactor setColorVars() - Renamed to set_color_vars() - Use NOCOLOR variable Signed-off-by: Thomas Deutschmann --- gen_funcs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gen_funcs.sh') diff --git a/gen_funcs.sh b/gen_funcs.sh index 38a7a04..ed742d1 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -22,8 +22,8 @@ isTrue() { return 1 } -setColorVars() { - if isTrue "${USECOLOR}" +set_color_vars() { + if ! isTrue "${NOCOLOR}" then GOOD=$'\e[32;01m' WARN=$'\e[33;01m' @@ -40,7 +40,7 @@ setColorVars() { UNDER='' fi } -setColorVars +set_color_vars dump_debugcache() { TODEBUGCACHE=no -- cgit v1.2.3-65-gdbad