Gentoo Archives: gentoo-commits

From: Richard Yao <ryao@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:ryao commit in: defaults/
Date: Mon, 03 Jun 2013 23:35:15
Message-Id: 1366874432.a408d4a5135fed4507333925713736368a2bf279.ryao@gentoo
1 commit: a408d4a5135fed4507333925713736368a2bf279
2 Author: Fabio Erculiani <lxnay <AT> sabayon <DOT> org>
3 AuthorDate: Tue Apr 23 15:41:22 2013 +0000
4 Commit: Richard Yao <ryao <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 25 07:20:32 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=a408d4a5
7
8 Drop useless parens in conditionals
9
10 ---
11 defaults/initrd.scripts | 2 +-
12 defaults/linuxrc | 6 +++---
13 2 files changed, 4 insertions(+), 4 deletions(-)
14
15 diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
16 index 7ec5c94..e614064 100755
17 --- a/defaults/initrd.scripts
18 +++ b/defaults/initrd.scripts
19 @@ -420,7 +420,7 @@ prompt_user(){
20
21 eval local oldvalue='$'${1}
22
23 - [ \( $# != 2 \) -a \( $# != 3 \) ] && \
24 + [ $# != 2 -a $# != 3 ] && \
25 bad_msg "Bad invocation of function prompt_user, please file a bug \
26 report with this message" && exit 1
27 [ -n "${3}" ] && local explnt=" or : ${3}" || local explnt="."
28
29 diff --git a/defaults/linuxrc b/defaults/linuxrc
30 index 0fe05ef..805515b 100755
31 --- a/defaults/linuxrc
32 +++ b/defaults/linuxrc
33 @@ -270,13 +270,13 @@ do
34 esac
35 done
36
37 -if [ \( "${CDROOT}" = '0' \) ]
38 +if [ "${CDROOT}" = '0' ]
39 then
40 - if [ -z "${REAL_ROOT}" -a \( "${FAKE_ROOT}" != "/dev/ram0" \) ]
41 + if [ -z "${REAL_ROOT}" -a "${FAKE_ROOT}" != "/dev/ram0" ]
42 then
43 REAL_ROOT="${FAKE_ROOT}"
44 fi
45 - if [ -z "${REAL_INIT}" -a \( "${FAKE_INIT}" != "/linuxrc" \) ]
46 + if [ -z "${REAL_INIT}" -a "${FAKE_INIT}" != "/linuxrc" ]
47 then
48 REAL_INIT="${FAKE_INIT}"
49 fi