Skip to content

Commit a67d0c6

Browse files
wangqingfreeallamiro
authored andcommitted
lint: format yum.sh (prometheus-community#212)
Signed-off-by: wangqing <[email protected]>
1 parent 0f6d084 commit a67d0c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: yum.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ upgrades=$(check_upgrades)
3232

3333
echo '# HELP yum_upgrades_pending Yum package pending updates by origin.'
3434
echo '# TYPE yum_upgrades_pending gauge'
35-
if [[ -n "${upgrades}" ]] ; then
35+
if [[ -n "${upgrades}" ]]; then
3636
echo "${upgrades}"
3737
else
3838
echo 'yum_upgrades_pending{origin=""} 0'
3939
fi
4040

4141
# If yum-utils/dnf-utils is not installed then we skip rendering this metric
42-
if [[ -x /bin/needs-restarting ]] ; then
42+
if [[ -x /bin/needs-restarting ]]; then
4343
echo '# HELP node_reboot_required Node reboot is required for software updates.'
4444
echo '# TYPE node_reboot_required gauge'
45-
if /bin/needs-restarting -r > /dev/null 2>&1 ; then
45+
if /bin/needs-restarting -r >/dev/null 2>&1; then
4646
echo 'node_reboot_required 0'
4747
else
4848
echo 'node_reboot_required 1'

0 commit comments

Comments
 (0)