The branch stable/14 has been updated by garga:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=e6061e54d6d4c0549b259c7d94630a6511561007

commit e6061e54d6d4c0549b259c7d94630a6511561007
Author:     Renato Botelho <ga...@freebsd.org>
AuthorDate: 2025-01-09 12:16:10 +0000
Commit:     Renato Botelho <ga...@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()

Reply via email to