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/elogall b/tools/dreport.d/plugins.d/elogall
index 0d500f6..33fd98e 100644
--- a/tools/dreport.d/plugins.d/elogall
+++ b/tools/dreport.d/plugins.d/elogall
@@ -9,8 +9,8 @@
desc="elog"
entries=$(busctl --list --no-pager tree \
- xyz.openbmc_project.Logging | grep \
- '/xyz/openbmc_project/logging/entry/')
+ xyz.openbmc_project.Logging | grep \
+ '/xyz/openbmc_project/logging/entry/')
#check for elog entries.
if [ -z "$entries" ]; then
diff --git a/tools/dreport.d/plugins.d/emconfig b/tools/dreport.d/plugins.d/emconfig
index 75e3d0c..5e01ca6 100644
--- a/tools/dreport.d/plugins.d/emconfig
+++ b/tools/dreport.d/plugins.d/emconfig
@@ -10,6 +10,6 @@
file_name="em-system.json"
if [ -e "/var/configuration/system.json" ]; then
- command="cat /var/configuration/system.json"
- add_cmd_output "$command" "$file_name" "$desc"
+ command="cat /var/configuration/system.json"
+ add_cmd_output "$command" "$file_name" "$desc"
fi
diff --git a/tools/dreport.d/plugins.d/fanctldump b/tools/dreport.d/plugins.d/fanctldump
index 003c7c1..590b9ed 100644
--- a/tools/dreport.d/plugins.d/fanctldump
+++ b/tools/dreport.d/plugins.d/fanctldump
@@ -12,10 +12,10 @@
# collect data only if fanctl is present
if [ -e "/usr/bin/fanctl" ]; then
- command="rm -f /tmp/fan_control_dump.json; /usr/bin/fanctl dump; \
+ command="rm -f /tmp/fan_control_dump.json; /usr/bin/fanctl dump; \
cat /tmp/fan_control_dump.json"
- add_cmd_output "$command" "$file_name" "$desc"
- rm -f /tmp/fan_control_dump.json
+ add_cmd_output "$command" "$file_name" "$desc"
+ rm -f /tmp/fan_control_dump.json
fi
diff --git a/tools/dreport.d/plugins.d/fanmondump b/tools/dreport.d/plugins.d/fanmondump
index f0906b9..0e34eef 100755
--- a/tools/dreport.d/plugins.d/fanmondump
+++ b/tools/dreport.d/plugins.d/fanmondump
@@ -7,7 +7,7 @@
. $DREPORT_INCLUDE/functions
if [ ! -e "/usr/bin/phosphor-fan-monitor" ]; then
- exit 0
+ exit 0
fi
file_name="/tmp/fan_monitor_dump.json"
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
diff --git a/tools/dreport.d/plugins.d/inventory b/tools/dreport.d/plugins.d/inventory
index 75873b2..a9013b5 100644
--- a/tools/dreport.d/plugins.d/inventory
+++ b/tools/dreport.d/plugins.d/inventory
@@ -17,7 +17,7 @@
file_name="inventory.log"
-if ! add_cmd_output "$command" "$file_name" "$desc";
+if ! add_cmd_output "$command" "$file_name" "$desc";
then
inventory_dir="/var/lib/phosphor-inventory-manager"
if [ -d "$inventory_dir" ]; then
diff --git a/tools/dreport.d/plugins.d/ledgroup b/tools/dreport.d/plugins.d/ledgroup
index de7faaf..135da37 100644
--- a/tools/dreport.d/plugins.d/ledgroup
+++ b/tools/dreport.d/plugins.d/ledgroup
@@ -21,6 +21,6 @@
then
dir_name="/var/lib/phosphor-led-manager/"
if [ -d "$dir_name" ]; then
- add_copy_file "$dir_name" "$desc"
+ add_copy_file "$dir_name" "$desc"
fi
fi
diff --git a/tools/dreport.d/plugins.d/pldmflightrecorder b/tools/dreport.d/plugins.d/pldmflightrecorder
index 5b9b094..8e22fa6 100644
--- a/tools/dreport.d/plugins.d/pldmflightrecorder
+++ b/tools/dreport.d/plugins.d/pldmflightrecorder
@@ -10,14 +10,14 @@
# collect data only if pldmd is enabled
if [ -e "/usr/bin/pldmd" ]; then
- command="rm -rf /tmp/pldm_flight_recorder; killall -s SIGUSR1 pldmd; \
+ command="rm -rf /tmp/pldm_flight_recorder; killall -s SIGUSR1 pldmd; \
sleep 5; cat /tmp/pldm_flight_recorder"
- file_name="pldmflightrecorder.log"
+ file_name="pldmflightrecorder.log"
- add_cmd_output "$command" "$file_name" "$desc"
+ add_cmd_output "$command" "$file_name" "$desc"
- rm -rf /tmp/pldm_flight_recorder
+ rm -rf /tmp/pldm_flight_recorder
else
- log_warning "skipping pldm flight recorder: pldmd is not enabled"
+ log_warning "skipping pldm flight recorder: pldmd is not enabled"
fi