12b410fb5347eb7e52e7ac85faab4fd5859b448e

Author
Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

fix: format

Diff

 1diff --git a/.nfpm/postinstall.sh b/.nfpm/postinstall.sh
 2index 929e3e821be5d5525c326bf7939b4321050bf223..c3e1de5300fe44cd774c145abc1744c1fceba2f3 100755
 3--- a/.nfpm/postinstall.sh
 4+++ b/.nfpm/postinstall.sh
 5@@ -2,7 +2,7 @@
 6 set -e
 7 
 8 if ! command -V systemctl >/dev/null 2>&1; then
 9-    echo "Not running SystemD, ignoring"
10+	echo "Not running SystemD, ignoring"
11 	exit 0
12 fi
13 
14diff --git a/.nfpm/postremove.sh b/.nfpm/postremove.sh
15index b94bb042bd461e2ee5ad1796df51ec36fa79dc11..a079424b31ed51e1151d950a4165930462fcfb8e 100755
16--- a/.nfpm/postremove.sh
17+++ b/.nfpm/postremove.sh
18@@ -1,6 +1,11 @@
19 #!/bin/sh
20 set -e
21 
22+if ! command -V systemctl >/dev/null 2>&1; then
23+	echo "Not running SystemD, ignoring"
24+	exit 0
25+fi
26+
27 systemctl stop soft.service
28 systemctl disable soft.service
29 systemctl daemon-reload