From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id AAA551381F3 for ; Thu, 25 Apr 2013 06:22:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23D65E098E; Thu, 25 Apr 2013 06:22:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68A2BE098E for ; Thu, 25 Apr 2013 06:22:33 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F85E33DF02 for ; Thu, 25 Apr 2013 06:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 13825E4402 for ; Thu, 25 Apr 2013 06:22:31 +0000 (UTC) From: "Fabio Erculiani" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabio Erculiani" Message-ID: <1366874432.a408d4a5135fed4507333925713736368a2bf279.lxnay@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/initrd.scripts defaults/linuxrc X-VCS-Directories: defaults/ X-VCS-Committer: lxnay X-VCS-Committer-Name: Fabio Erculiani X-VCS-Revision: a408d4a5135fed4507333925713736368a2bf279 X-VCS-Branch: master Date: Thu, 25 Apr 2013 06:22:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: af64e6d0-49bc-4621-9826-da3be40859d4 X-Archives-Hash: 465160974602de28e5237f4ca18b7f90 commit: a408d4a5135fed4507333925713736368a2bf279 Author: Fabio Erculiani sabayon org> AuthorDate: Tue Apr 23 15:41:22 2013 +0000 Commit: Fabio Erculiani gentoo org> CommitDate: Thu Apr 25 07:20:32 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=a408d4a5 Drop useless parens in conditionals --- defaults/initrd.scripts | 2 +- 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