We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4fa73db + ec65bee commit 29c5e60Copy full SHA for 29c5e60
lib/bashly/libraries/colors/colors.sh
@@ -13,7 +13,7 @@
13
print_in_color() {
14
local color="$1"
15
shift
16
- if [[ -z ${NO_COLOR+x} ]]; then
+ if [[ "${NO_COLOR:-}" == "" ]]; then
17
printf "$color%b\e[0m\n" "$*"
18
else
19
printf "%b\n" "$*"
0 commit comments