diff options
author | 2013-04-23 16:41:22 +0100 | |
---|---|---|
committer | 2013-04-25 08:20:32 +0100 | |
commit | a408d4a5135fed4507333925713736368a2bf279 (patch) | |
tree | 5100c8ac095b6cd63084e0618bad2daa190f2285 | |
parent | Drop KV_2_6_OR_GREATER (diff) | |
download | genkernel-a408d4a5135fed4507333925713736368a2bf279.tar.gz genkernel-a408d4a5135fed4507333925713736368a2bf279.tar.bz2 genkernel-a408d4a5135fed4507333925713736368a2bf279.zip |
Drop useless parens in conditionals
-rwxr-xr-x | defaults/initrd.scripts | 2 | ||||
-rwxr-xr-x | defaults/linuxrc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 7ec5c94..e614064 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -420,7 +420,7 @@ prompt_user(){ eval local oldvalue='$'${1} - [ \( $# != 2 \) -a \( $# != 3 \) ] && \ + [ $# != 2 -a $# != 3 ] && \ bad_msg "Bad invocation of function prompt_user, please file a bug \ report with this message" && exit 1 [ -n "${3}" ] && local explnt=" or : ${3}" || local explnt="." diff --git a/defaults/linuxrc b/defaults/linuxrc index 0fe05ef..805515b 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -270,13 +270,13 @@ do esac done -if [ \( "${CDROOT}" = '0' \) ] +if [ "${CDROOT}" = '0' ] then - if [ -z "${REAL_ROOT}" -a \( "${FAKE_ROOT}" != "/dev/ram0" \) ] + if [ -z "${REAL_ROOT}" -a "${FAKE_ROOT}" != "/dev/ram0" ] then REAL_ROOT="${FAKE_ROOT}" fi - if [ -z "${REAL_INIT}" -a \( "${FAKE_INIT}" != "/linuxrc" \) ] + if [ -z "${REAL_INIT}" -a "${FAKE_INIT}" != "/linuxrc" ] then REAL_INIT="${FAKE_INIT}" fi |