commit:     9ae5e17abc68907a0c8d75e16c29a84bb48c5e61
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  7 17:24:38 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue Apr  7 17:25:12 2020 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=9ae5e17a

targets: Just make directory; don't bother checking

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 targets/support/bootloader-setup.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/targets/support/bootloader-setup.sh 
b/targets/support/bootloader-setup.sh
index 2c69419d..c52e0907 100755
--- a/targets/support/bootloader-setup.sh
+++ b/targets/support/bootloader-setup.sh
@@ -233,8 +233,7 @@ case ${clst_hostarch} in
                # GRUB2
                if [ -d $1/grub ] || [ -f "$1/boot/EFI/BOOT/BOOTX64.EFI" ]
                then
-                       #the grub dir may not exist, better safe than sorry
-                       [ -d "$1/grub" ] || mkdir -p "$1/grub"
+                       mkdir -p "$1/grub"
 
                        iacfg=$1/grub/grub.cfg
                        echo 'set default=0' > ${iacfg}

Reply via email to