mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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")
This commit is contained in:
parent
55b343f4f9
commit
fb98fc4755
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue