diff options
author | Mark Hindley <mark@hindley.org.uk> | 2021-03-15 12:52:49 -0400 |
---|---|---|
committer | Steve Langasek <steve.langasek@canonical.com> | 2021-09-15 17:52:38 -0700 |
commit | d5f1940bddfa1da0d0f4191cc580232cd624790b (patch) | |
tree | e96d056fa065557e6b76e75c4f4f196fc420e2ee /debian/libpam0g.postinst | |
parent | e11e4dcc04b3c0bf1878c00f6681f7b7cfd461c6 (diff) | |
download | pam-d5f1940bddfa1da0d0f4191cc580232cd624790b.tar.gz pam-d5f1940bddfa1da0d0f4191cc580232cd624790b.tar.bz2 pam-d5f1940bddfa1da0d0f4191cc580232cd624790b.zip |
debian/libpam0g.postinst: code review fixes
* Fix indentation
* set service so argument to function is used
* remove dead code
Diffstat (limited to 'debian/libpam0g.postinst')
-rw-r--r-- | debian/libpam0g.postinst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/libpam0g.postinst b/debian/libpam0g.postinst index 23320c8f..396b35ca 100644 --- a/debian/libpam0g.postinst +++ b/debian/libpam0g.postinst @@ -65,9 +65,10 @@ if test -d /run/systemd/system; then } else # not systemd is_service_configured() { + service="$1" idl="/etc/init.d/${service}" if [ -n "$idl" ] && [ -x $idl ]; then -return 0 + return 0 else return 1 fi @@ -111,7 +112,6 @@ fi ) for service in $check; do - idl="/etc/init.d/${service}" if is_service_configured $service; then services="$service $services" else |