diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-02-03 11:33:07 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-02-03 13:58:15 +0100 |
commit | 6f171422cbb1c48da3f1f440148e163af2e2e635 (patch) | |
tree | dc729e0d756a79568d271df815077b415bec1ac2 | |
parent | e88c1e1781f453db2de6ea46cc574c237c042a6a (diff) |
rc.sysinit: Remove redundant command substitution
Invoke `grep -q` and check its return value instead of checking whether
grep(1) produces non-empty output.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rwxr-xr-x | rc.sysinit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ if [[ ! -a /usr/lib ]] ; then printf "${C_FAIL}/usr is not mounted. This is not supported.${C_OTHER}\n" fi -if [[ ! $(grep devtmpfs /proc/filesystems) ]] ; then +if ! grep -q devtmpfs /proc/filesystems; then printf "${C_FAIL}Your kernel does not have devtmpfs support. This is not supported.${C_OTHER}\n" fi |