From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 37200138350 for ; Sat, 11 Apr 2020 23:14:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 638E5E0A7E; Sat, 11 Apr 2020 23:14:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4665FE0A7E for ; Sat, 11 Apr 2020 23:14:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBFA934F071 for ; Sat, 11 Apr 2020 23:14:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 922FB18F for ; Sat, 11 Apr 2020 23:14:09 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1586646758.2948a542da6964a4f61a71fd5253c97f803eac34.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_determineargs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 2948a542da6964a4f61a71fd5253c97f803eac34 X-VCS-Branch: master Date: Sat, 11 Apr 2020 23:14:09 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 60315b26-a755-435f-870b-518315e451a3 X-Archives-Hash: 57ba846e48f2c0e8d90ad07effe9061c commit: 2948a542da6964a4f61a71fd5253c97f803eac34 Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Apr 11 23:12:38 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Apr 11 23:12:38 2020 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=2948a542 gen_determineargs.sh: determine_real_args(): Quote $SANDBOX_ON $SANDBOX_ON can be unset causing 'unary operator expected' error. Fixes c0e013c ("gen_determineargs.sh: determine_real_args(): Error out early when already running within a sandbox") Signed-off-by: Thomas Deutschmann gentoo.org> gen_determineargs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 95ec402..b1c038d 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -1012,7 +1012,7 @@ determine_real_args() { SANDBOX_COMMAND= if isTrue "${SANDBOX}" then - if [ ${SANDBOX_ON} -eq 1 ] + if [[ "${SANDBOX_ON}" == "1" ]] then gen_die "SANDBOX_ON=1 detected -- You cannot use --sandbox when already running within a sandbox!" fi