summaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-02-03 13:50:35 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2012-02-03 13:58:08 +0100
commite88c1e1781f453db2de6ea46cc574c237c042a6a (patch)
tree3e8e3836d40fe2050e5b99462a5e9f3e7ec6c7e9 /rc.d
parent05d1c04cf9e5916de8550115dc578e91d29651cd (diff)
Small style cleanup
* Add whitespace to arithmetic expressions. * Use boolean logic for semantically boolean variables. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.d b/rc.d
index aed2e42..115dc05 100755
--- a/rc.d
+++ b/rc.d
@@ -41,10 +41,10 @@ not exist or is not executable.${C_CLEAR}\n" >&2
exit 2
fi
# check filter
- ((${filter[started]} == 1)) && ck_daemon "$daemon" && continue
- ((${filter[stopped]} == 1)) && ! ck_daemon "$daemon" && continue
- ((${filter[auto]} == 1)) && ck_autostart "$daemon" && continue
- ((${filter[noauto]} == 1)) && ! ck_autostart "$daemon" && continue
+ (( ${filter[started]} )) && ck_daemon "$daemon" && continue
+ (( ${filter[stopped]} )) && ! ck_daemon "$daemon" && continue
+ (( ${filter[auto]} )) && ck_autostart "$daemon" && continue
+ (( ${filter[noauto]} )) && ! ck_autostart "$daemon" && continue
new_daemons+=("$daemon")
done
daemons=("${new_daemons[@]}")