beautysh: re-format
beautysh is enabled in the openbmc-build-scripts on Bash/Zsh/POSIX-sh
files to have a consistent formatting. Re-run the formatter on the
whole repository.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I38048dcd55f2db51bcc87b33ea0748a6cfdcca68
diff --git a/tools/dreport.d/plugins.d/hostlogger b/tools/dreport.d/plugins.d/hostlogger
index 1832453..506c5a3 100644
--- a/tools/dreport.d/plugins.d/hostlogger
+++ b/tools/dreport.d/plugins.d/hostlogger
@@ -10,16 +10,16 @@
LOGS_PATH="/var/lib/obmc/hostlogs"
if [[ -d ${LOGS_PATH} ]]; then
- # Manual flush of the log buffer for all service instances
- INSTANCES="$(systemctl list-units --type=service --state=running --full | \
+ # Manual flush of the log buffer for all service instances
+ INSTANCES="$(systemctl list-units --type=service --state=running --full | \
awk '/hostlogger@/{print $1}')"
- for SVC in ${INSTANCES}; do
- log_info "Flush ${SVC}..."
- if ! systemctl kill --signal SIGUSR1 ${SVC}; then
- log_warning "Unable to flush ${SVC}"
- fi
- done
+ for SVC in ${INSTANCES}; do
+ log_info "Flush ${SVC}..."
+ if ! systemctl kill --signal SIGUSR1 ${SVC}; then
+ log_warning "Unable to flush ${SVC}"
+ fi
+ done
- # Copy log directory
- add_copy_file "${LOGS_PATH}" "${DESCRIPTION}"
+ # Copy log directory
+ add_copy_file "${LOGS_PATH}" "${DESCRIPTION}"
fi