1 |
commit: 0bb175ba11cf09d6e3f64d2670039ca01a874c10 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 28 12:56:29 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 13:45:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=0bb175ba |
7 |
|
8 |
gen_funcs.sh: _tc-getPROG(): Prevent override with empty value |
9 |
|
10 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
11 |
|
12 |
gen_funcs.sh | 1 + |
13 |
1 file changed, 1 insertion(+) |
14 |
|
15 |
diff --git a/gen_funcs.sh b/gen_funcs.sh |
16 |
index 208a7e9..ab7a7ce 100755 |
17 |
--- a/gen_funcs.sh |
18 |
+++ b/gen_funcs.sh |
19 |
@@ -1220,6 +1220,7 @@ _tc-getPROG() { |
20 |
done |
21 |
|
22 |
if [[ -n "${!prog_default_varname}" ]] \ |
23 |
+ && [[ -n "${!prog_override_varname}" ]] \ |
24 |
&& [[ "${!prog_override_varname}" != "${!prog_default_varname}" ]] |
25 |
then |
26 |
# User wants to run specific program |