From a31a973a629f1cde7fdfd6452a24f14e249a53bf Mon Sep 17 00:00:00 2001 From: Nuo Cheng Date: Wed, 6 May 2026 13:14:54 +0000 Subject: [PATCH] fix compatibility issues with dash Based on the following Fedora commit: https://src.fedoraproject.org/rpms/gnupg2/c/7828eb7b24cca4d27f626b76bcda6095507a0d11 Related: RHEL-166369 --- gnupg2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnupg2.sh b/gnupg2.sh index 485ab8b..fce8fc6 100644 --- a/gnupg2.sh +++ b/gnupg2.sh @@ -1,3 +1,3 @@ -if [[ $- == *i* ]]; then - export GPG_TTY=$(tty) -fi +case "$-" in *i*) + export GPG_TTY=$(tty) ;; +esac