>>>>> On Fri, 01 Mar 2024, Florian Schmaus wrote: > On 29/02/2024 21.40, Ulrich Mueller wrote: >>>>>>> On Thu, 29 Feb 2024, Florian Schmaus wrote: >> >>> @@ -178,6 +178,10 @@ etexmf-update() { >>> if has_version 'app-text/texlive-core' ; then >>> 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 >> This condition will always be false.
> Is it because assigning 'res' will set '$?'? Yes, the local command will return success status. So you should check for ${res} not $?. Ulrich
signature.asc
Description: PGP signature