commit:     81b10b5208b7bd17b66bb30cdf19804aa2212267
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 29 04:29:59 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Mar 29 04:29:59 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=81b10b52

genkernel: Use isTrue for $BOOTRW

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

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

diff --git a/genkernel b/genkernel
index 0111a32..676471c 100755
--- a/genkernel
+++ b/genkernel
@@ -211,7 +211,7 @@ else
                                echo
                        else
                                print_info 1 "mount: ${BOOTDIR} remounted 
read/write successfully!"
-                               BOOTRW=1
+                               BOOTRW="yes"
                        fi
                fi
        fi
@@ -393,7 +393,7 @@ then
        unset CONFGREP
 fi
 
-[ "${BOOTRW}" != '' ] && mount -o remount,ro ${BOOTDIR}
+isTrue "${BOOTRW}" && mount -o remount,ro ${BOOTDIR}
 
 echo
 print_info 1 'Do NOT report kernel bugs as genkernel bugs unless your bug'

Reply via email to