commit:     e2cfd47d5ebb5fcf5b6673438e30d1802ebbdf37
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  2 12:33:16 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> 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 <whissi <AT> 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=<type> requires one of: no, all, intel, amd" ;;
+               *) gen_die "Invalid microcode '${MICROCODE}'; 
--microcode=<type> requires one of: no, all, intel, amd" ;;
        esac
 
        if isTrue "${BUILD_RAMDISK}"  && isTrue "${MICROCODE_INITRAMFS}" && [[ 
-z "${MICROCODE}" ]]

Reply via email to