From f278cb40f12457f447ee738ccb48f7bfda3c043e Mon Sep 17 00:00:00 2001 From: 0x5c Date: Fri, 5 Jan 2024 18:56:41 -0500 Subject: [PATCH] xbps-src: disable NOCOLORS in CI This allows having the message colours in CI, and only affects xbps-src itself --- xbps-src | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xbps-src b/xbps-src index cdb5f8c6d64..712a578c6f9 100755 --- a/xbps-src +++ b/xbps-src @@ -474,6 +474,9 @@ fi # Read settings from config file [ -s "$XBPS_CONFIG_FILE" ] && . $XBPS_CONFIG_FILE &>/dev/null +# show colors unconditionally in CI +[ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ] && export NOCOLORS= + # Set options passed on command line, after configuration files have been read [ -n "$XBPS_ARG_BUILD_ONLY_ONE_PKG" ] && XBPS_BUILD_ONLY_ONE_PKG=yes [ -n "$XBPS_ARG_IGNORE_BROKENNESS" ] && XBPS_IGNORE_BROKENNESS=1