commit:     9f22daf0f154a07429fbbba80bd0f2bb2234fb9d
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 29 21:12:21 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Feb 29 21:12:21 2024 +0000
URL:        https://gitweb.gentoo.org/proj/tex-overlay.git/commit/?id=9f22daf0

texlive-common.eclass: incorporate ML feedback, part 2

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 eclass/texlive-common.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 852f762..1e5c8a5 100644
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -179,7 +179,7 @@ etexmf-update() {
                if [[ -z ${ROOT} && -x "${EPREFIX}"/usr/sbin/texmf-update ]] ; 
then
                        "${EPREFIX}"/usr/sbin/texmf-update
                        local res="${?}"
-                       if [[ "${?}" -ne 0 ]] && ver_test -ge 2023; then
+                       if [[ "${res}" -ne 0 ]] && ver_test -ge 2023; then
                                die -n "texmf-update returned non-zero exit 
status ${res}"
                        fi
                else
@@ -200,7 +200,7 @@ efmtutil-sys() {
                if [[ -z ${ROOT} && -x "${EPREFIX}"/usr/bin/fmtutil-sys ]] ; 
then
                        einfo "Rebuilding formats"
                        "${EPREFIX}"/usr/bin/fmtutil-sys --all &> /dev/null ||
-                               die -n "fmtutil-sys returned non-zero exit 
status ${res}"
+                               die -n "fmtutil-sys returned non-zero exit 
status ${?}"
                else
                        ewarn "Cannot run fmtutil-sys for some reason."
                        ewarn "Your formats might be inconsistent with your 
installed ${PN} version"

Reply via email to