commit:     e900e7c9c02cc00cfa13ab50f440dfba236e9417
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 28 21:14:31 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 20:00:26 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e900e7c9

genkernel: Combine kerncache conditionals

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 genkernel | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/genkernel b/genkernel
index c3aa8d1..d8700ea 100755
--- a/genkernel
+++ b/genkernel
@@ -267,17 +267,14 @@ then
        fi
 fi
 
-if isTrue "${CMD_INSTALL}"
+if isTrue "${KERNCACHE_IS_VALID}"
 then
-       if isTrue "${KERNCACHE_IS_VALID}"
+       if isTrue "${CMD_INSTALL}"
        then
                print_info 1 '' 1 0
                gen_kerncache_extract_kernel
        fi
-fi
 
-if isTrue "${KERNCACHE_IS_VALID}"
-then
        if ! isTrue "${BUILD_STATIC}"
        then
                if ! isTrue "${CMD_INSTALL}" && [ -z "${INSTALL_MOD_PATH}" ]

Reply via email to