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 D31C6138334 for ; Wed, 2 Oct 2019 22:45:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BA4DE091B; Wed, 2 Oct 2019 22:45:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8564CE091B for ; Wed, 2 Oct 2019 22:45:31 +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 8130734B7D2 for ; Wed, 2 Oct 2019 22:45:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D90A3838 for ; Wed, 2 Oct 2019 22:45:27 +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: <1570019596.e2cfd47d5ebb5fcf5b6673438e30d1802ebbdf37.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: e2cfd47d5ebb5fcf5b6673438e30d1802ebbdf37 X-VCS-Branch: master Date: Wed, 2 Oct 2019 22:45:27 +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: 62fe74a9-ac69-4822-b2b1-88ff220d99b2 X-Archives-Hash: 8a02aee5ec1d090e15b9bdb69a4d6122 commit: e2cfd47d5ebb5fcf5b6673438e30d1802ebbdf37 Author: Thomas Deutschmann gentoo org> AuthorDate: Wed Oct 2 12:33:16 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Wed Oct 2 12:33:16 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e2cfd47d gen_determineargs.sh: determine_real_args(): Normalize --microcode argument validation Signed-off-by: Thomas Deutschmann gentoo.org> gen_determineargs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen_determineargs.sh b/gen_determineargs.sh index fdef153..a27e980 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -826,11 +826,11 @@ determine_real_args() { fi MICROCODE=${MICROCODE,,} - case ${MICROCODE} in + case "${MICROCODE}" in all|amd|intel) ;; y|yes|1|true|t) MICROCODE='all' ;; n|no|none|0|false|f) MICROCODE='' ;; - *) gen_die "Invalid microcode '${MICROCODE}', --microcode= requires one of: no, all, intel, amd" ;; + *) gen_die "Invalid microcode '${MICROCODE}'; --microcode= requires one of: no, all, intel, amd" ;; esac if isTrue "${BUILD_RAMDISK}" && isTrue "${MICROCODE_INITRAMFS}" && [[ -z "${MICROCODE}" ]]