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.
This commit is contained in:
Fredrik Roubert 2023-04-20 15:14:22 +02:00 committed by Fredrik Roubert
parent 295f0f2a43
commit 09f4459a77

View file

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