git: 4cdfa4e8db56 - stable/14 - fwget: Simplify logic
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Jan 2025 21:28:55 UTC
The branch stable/14 has been updated by garga: URL: https://cgit.FreeBSD.org/src/commit/?id=4cdfa4e8db56460bf5b51974019bd26fdab5a9b4 commit 4cdfa4e8db56460bf5b51974019bd26fdab5a9b4 Author: Renato Botelho <garga@FreeBSD.org> AuthorDate: 2025-01-09 14:24:18 +0000 Commit: Renato Botelho <garga@FreeBSD.org> CommitDate: 2025-01-22 21:28:45 +0000 fwget: Simplify logic Summary: Use log() to print messages that should be supressed when -q is in use. No functional changes intended. Differential Revision: https://reviews.freebsd.org/D48393 Reviewed By: manu Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit fb98fc4755def2cb8ca145751b0e54485d5e2f4a) --- usr.sbin/fwget/fwget.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/usr.sbin/fwget/fwget.sh b/usr.sbin/fwget/fwget.sh index d87cd03aa139..138a2a26bfb1 100755 --- a/usr.sbin/fwget/fwget.sh +++ b/usr.sbin/fwget/fwget.sh @@ -120,16 +120,12 @@ done case "${packages}" in ""|^[[:space:]]*$) - if [ "${QUIET}" != "y" ]; then - echo "No firmware packages to install." - fi + log "No firmware packages to install." exit 0 ;; esac -if [ "${QUIET}" != "y" ]; then - echo "Needed firmware packages: '${packages}'" -fi +log "Needed firmware packages: '${packages}'" if [ "${DRY_RUN}" = "y" ]; then if [ "${QUIET}" = "y" ]; then for pkg in ${packages}; do