aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@sabayon.org>2013-04-23 16:41:22 +0100
committerFabio Erculiani <lxnay@sabayon.org>2013-04-25 08:20:32 +0100
commita408d4a5135fed4507333925713736368a2bf279 (patch)
tree5100c8ac095b6cd63084e0618bad2daa190f2285
parentDrop KV_2_6_OR_GREATER (diff)
downloadgenkernel-a408d4a5135fed4507333925713736368a2bf279.tar.gz
genkernel-a408d4a5135fed4507333925713736368a2bf279.tar.bz2
genkernel-a408d4a5135fed4507333925713736368a2bf279.zip
Drop useless parens in conditionals
-rwxr-xr-xdefaults/initrd.scripts2
-rwxr-xr-xdefaults/linuxrc6
2 files changed, 4 insertions, 4 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 7ec5c94b..e6140646 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 0fe05efb..805515b0 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