From 04c4357102b9b614ae87c9b124dc3fe3b90efa71 Mon Sep 17 00:00:00 2001
From: "Julien Moutinho (adh14)" <julm+rezine@sourcephile.fr>
Date: Mon, 18 Nov 2024 12:24:43 +0100
Subject: [PATCH] correct(scripts): regression to check uncommitted changes
 before tagging

---
 scripts/lib.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/lib.sh b/scripts/lib.sh
index 4a4e316..d126df8 100644
--- a/scripts/lib.sh
+++ b/scripts/lib.sh
@@ -198,7 +198,10 @@ rfcPDF () {
 rfcTag () {
   git reset
   git diff --exit-code -- "$rfcDir" :'!*.html' ||
-  echo >&2 "ERROR: you have changes to commit"
+  {
+    cat >&2 <<<"ERROR: you have changes to commit"
+    exit 1
+  }
 
   : "Check if \$rfcRevAdvocacy must be increased."
   rfcNoCriticisms="set" \
-- 
2.47.2