1 |
commit: e2cfd47d5ebb5fcf5b6673438e30d1802ebbdf37 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 2 12:33:16 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 2 12:33:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e2cfd47d |
7 |
|
8 |
gen_determineargs.sh: determine_real_args(): Normalize --microcode argument validation |
9 |
|
10 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
11 |
|
12 |
gen_determineargs.sh | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/gen_determineargs.sh b/gen_determineargs.sh |
16 |
index fdef153..a27e980 100755 |
17 |
--- a/gen_determineargs.sh |
18 |
+++ b/gen_determineargs.sh |
19 |
@@ -826,11 +826,11 @@ determine_real_args() { |
20 |
fi |
21 |
|
22 |
MICROCODE=${MICROCODE,,} |
23 |
- case ${MICROCODE} in |
24 |
+ case "${MICROCODE}" in |
25 |
all|amd|intel) ;; |
26 |
y|yes|1|true|t) MICROCODE='all' ;; |
27 |
n|no|none|0|false|f) MICROCODE='' ;; |
28 |
- *) gen_die "Invalid microcode '${MICROCODE}', --microcode=<type> requires one of: no, all, intel, amd" ;; |
29 |
+ *) gen_die "Invalid microcode '${MICROCODE}'; --microcode=<type> requires one of: no, all, intel, amd" ;; |
30 |
esac |
31 |
|
32 |
if isTrue "${BUILD_RAMDISK}" && isTrue "${MICROCODE_INITRAMFS}" && [[ -z "${MICROCODE}" ]] |