From 25528efe9b4af10e9f0b6f6c55f8d3576aaf7711 Mon Sep 17 00:00:00 2001 From: Andrew Nikitin Date: Wed, 2 Mar 2022 13:44:15 +0300 Subject: [PATCH] Make the same style Signed-off-by: Andrew Nikitin --- build-tools/postpurge | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build-tools/postpurge b/build-tools/postpurge index 6f0b162be..360e6fee8 100644 --- a/build-tools/postpurge +++ b/build-tools/postpurge @@ -1,7 +1,9 @@ #!/bin/bash # Remove cheqd-noded systemd service -if test -f "/lib/systemd/system/cheqd-noded.service"; then +# shellcheck disable=SC1136 +if [ -f "/lib/systemd/system/cheqd-noded.service" ] +then # Stop cheqd-noded service systemctl stop cheqd-noded.service @@ -13,7 +15,8 @@ if test -f "/lib/systemd/system/cheqd-noded.service"; then fi # Remove rsyslog config for cheqd-noded -if test -f "/etc/rsyslog.d/cheqd-node.conf"; then +if [ -f "/etc/rsyslog.d/cheqd-node.conf" ] +then # Remove syslog conf rm /etc/rsyslog.d/cheqd-node.conf @@ -25,7 +28,8 @@ if test -f "/etc/rsyslog.d/cheqd-node.conf"; then fi # Remove logrotate config for cheqd-noded -if test -f "/etc/logrotate.d/cheqd-node"; then +if [ -f "/etc/logrotate.d/cheqd-node" ] +then # Remove syslog conf rm /etc/logrotate.d/cheqd-node