You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2024/04/22 18:50:50 UTC

(logging-log4j2) branch 2.x updated: Enable "strict mode" for `generate-email.sh`

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

vy pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/2.x by this push:
     new ca0eaf0096 Enable "strict mode" for `generate-email.sh`
ca0eaf0096 is described below

commit ca0eaf0096662795a34451d6b43ff803ae7ece27
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Apr 22 20:50:50 2024 +0200

    Enable "strict mode" for `generate-email.sh`
---
 .github/generate-email.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/generate-email.sh b/.github/generate-email.sh
index 10443bb432..572014b680 100755
--- a/.github/generate-email.sh
+++ b/.github/generate-email.sh
@@ -16,6 +16,10 @@
 # limitations under the License.
 #
 
+# Enable strict mode
+set -euo pipefail
+IFS=$'\n\t'
+
 SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
 
 stderr() {