fix compatibility issues with dash

Based on the following Fedora commit:

7828eb7b24

Related: RHEL-166369
This commit is contained in:
Nuo Cheng 2026-05-06 13:14:54 +00:00 committed by Jakub Jelen
parent 38b04ff21f
commit a31a973a62

View File

@ -1,3 +1,3 @@
if [[ $- == *i* ]]; then
export GPG_TTY=$(tty)
fi
case "$-" in *i*)
export GPG_TTY=$(tty) ;;
esac