This is an automated email from the ASF dual-hosted git repository.

dashorst pushed a commit to branch fix-release-script-generated-files
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit c2a591757618a65e01f0504dc198080ecf4374c8
Author: Martijn Dashorst <[email protected]>
AuthorDate: Sun Nov 1 13:38:53 2026 +0100

    Print the error colour in release.sh instead of its escape sequence
    
    fail passed its message to echo without -e, so bash printed the colour
    codes as the literal text "\033[31m" and "\033[0m" around every fatal
    error. It uses printf now: the format string carries the escape
    sequences and the message is passed as an argument, so the error shows
    in red and a backslash or percent sign in the message is printed as is.
    
    Generated-by: Claude Code (Claude Opus 5.5)
---
 release.sh | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/release.sh b/release.sh
index 2843c73074..231a48565a 100755
--- a/release.sh
+++ b/release.sh
@@ -18,11 +18,7 @@
 # set -x
 
 function fail {
-    >&2 echo "\033[31m
-FATAL ERROR
------------
-$1
-\033[0m"
+    >&2 printf '\033[31m\nFATAL ERROR\n-----------\n%s\n\033[0m\n' "$1"
     exit 1
 }
 

Reply via email to