From 09f4459a77a8dbc12f15e02f6820a994636773b5 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Thu, 20 Apr 2023 15:14:22 +0200 Subject: [PATCH] ICU-22221 Add the -R flag to less to display ANSI colors. Without this flag, any ANSI color escape sequences in the Maven error log will be displayed in their escaped form, which isn't very readable. --- tools/cldr/lib/install-cldr-jars.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cldr/lib/install-cldr-jars.sh b/tools/cldr/lib/install-cldr-jars.sh index 7047d51fef4..2ba989e9fa9 100755 --- a/tools/cldr/lib/install-cldr-jars.sh +++ b/tools/cldr/lib/install-cldr-jars.sh @@ -42,7 +42,7 @@ function run_with_logging() { read -p "Show log file? " -n 1 -r echo if [[ "${REPLY}" =~ ^[Yy]$ ]] ; then - less -X "${LOG_FILE}" + less -RX "${LOG_FILE}" fi echo "Log file: ${LOG_FILE}" exit 1