From d32411e297be4d45463989bb353c89b8975bb5ff Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Tue, 19 Mar 2019 16:17:53 +0800 Subject: [PATCH] android.cfg: simplify code Not sure why I wrote it in that way. --- install/grub2/efi/boot/android.cfg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/grub2/efi/boot/android.cfg b/install/grub2/efi/boot/android.cfg index 721a6a9..cf8fe9b 100644 --- a/install/grub2/efi/boot/android.cfg +++ b/install/grub2/efi/boot/android.cfg @@ -5,9 +5,7 @@ function add_boot_entry { menuentry "$2" "$@" --class android-x86 { savedefault set root=$android - if [ -e $2/kernel ]; then - true - else + if [ ! -e $2/kernel ]; then search --no-floppy --set root -f $2/kernel fi set kd=$2 -- 2.11.0