periodic: return $rc instead of "$rc" for several scripts
authorAaron LI <aly@aaronly.me>
Fri, 1 Jun 2018 04:56:05 +0000 (12:56 +0800)
committerAaron LI <liweitianux@live.com>
Fri, 8 Jun 2018 08:02:29 +0000 (16:02 +0800)
Also fix a minor whitespace issue in 200.chkmounts .

etc/periodic/security/200.chkmounts
etc/periodic/security/300.chkuid0
etc/periodic/security/400.passwdless
etc/periodic/security/410.logincheck

index c1cfbf4..492c1e2 100644 (file)
@@ -50,7 +50,7 @@ rc=0
 if check_yesno_period security_status_chkmounts_enable
 then
        case "$security_status_nomfs" in
-           [Yy][Ee][Ss])
+       [Yy][Ee][Ss])
                ignore="${ignore}|^mfs:"
        esac
        [ -n "$ignore" ] && cmd="egrep -v ${ignore#|}" || cmd=cat
@@ -62,4 +62,4 @@ then
        rc=$?
 fi
 
-exit "$rc"
+exit $rc
index beabb7c..88868db 100644 (file)
@@ -51,4 +51,4 @@ then
        [ $n -gt 0 ] && rc=1 || rc=0
 fi
 
-exit "$rc"
+exit $rc
index aa4fc2e..375e0a3 100644 (file)
@@ -48,4 +48,4 @@ then
        [ $n -gt 0 ] && rc=1 || rc=0
 fi
 
-exit "$rc"
+exit $rc
index b480e10..0f11a71 100644 (file)
@@ -52,4 +52,4 @@ then
        [ $n -gt 0 ] && rc=1 || rc=0
 fi
 
-exit "$rc"
+exit $rc