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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user