Join the community today
Register Now

Beta Branch fix cecho exit status when TERM is unset in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 14, 2026 at 10:14 PM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,407
    12,614
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,273
    Local Time:
    11:51 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix cecho exit status when TERM is unset in 140.00beta01

    cecho ended with $Reset (tput sgr0), so it returned tput's exit status. With
    no TERM set (cron, detached or non-interactive centmin-cli.sh runs), tput
    exits 2, and callers that propagate status treated a successful step as a
    failure. centmin-cli.sh phpupgrade stopped after the memcached step because
    funct_memcachedreinstall ends with a cecho and its caller returns on error,
    so redis, mailparse and imagick were never rebuilt and their ini files were
    left pointing at missing extensions.

    Changes:
    - cecho in centmin.sh, centmin-cli.sh, inc/axelsetup.inc and inc/cpcheck.inc
    sends tput errors to /dev/null and always returns 0

    Continue reading...


    140.00beta01 branch