Date: Wed, 22 Jan 2025 21:28:54 GMT From: Renato Botelho <garga@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e6061e54d6d4 - stable/14 - fwget: Silence log() when -q is used Message-ID: <202501222128.50MLSsEO071685@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by garga: URL: https://cgit.FreeBSD.org/src/commit/?id=e6061e54d6d4c0549b259c7d94630a6511561007 commit e6061e54d6d4c0549b259c7d94630a6511561007 Author: Renato Botelho <garga@FreeBSD.org> AuthorDate: 2025-01-09 12:16:10 +0000 Commit: Renato Botelho <garga@FreeBSD.org> CommitDate: 2025-01-22 21:28:44 +0000 fwget: Silence log() when -q is used Summary: Silence log function when -q parameter is used to prevent undesired output PR: 283939 Reviewed By: manu Differential Revision: https://reviews.freebsd.org/D48391 Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 19a6bc9f51e5c5705a2b396b0da61e6536acb4cb) --- usr.sbin/fwget/fwget.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/fwget/fwget.sh b/usr.sbin/fwget/fwget.sh index 3e2181e53b73..d87cd03aa139 100755 --- a/usr.sbin/fwget/fwget.sh +++ b/usr.sbin/fwget/fwget.sh @@ -47,7 +47,9 @@ EOF log() { - echo "$@" + if [ "${QUIET}" != "y" ]; then + echo "$@" + fi } log_verbose()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501222128.50MLSsEO071685>