commit:     b28b3ce7a4aca0cd79236133fbe69b8769c0c194
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  1 03:43:19 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Apr  1 04:21:03 2020 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=b28b3ce7

targets: Use mkdir -p

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

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

diff --git a/targets/support/bootloader-setup.sh 
b/targets/support/bootloader-setup.sh
index 051adc28..154874d5 100755
--- a/targets/support/bootloader-setup.sh
+++ b/targets/support/bootloader-setup.sh
@@ -291,9 +291,7 @@ case ${clst_hostarch} in
                # CD image, and then pass these components to the
                # `sgibootcd` tool which outputs a final CD image
                scratch="${1}"
-               [ ! -d "${scratch}/kernels" ] && mkdir ${scratch}/kernels
-               [ ! -d "${scratch}/kernels/misc" ] && mkdir 
${scratch}/kernels/misc
-               [ ! -d "${scratch}/arcload" ] && mkdir ${scratch}/arcload
+               mkdir -p mkdir ${scratch}/{kernels/misc,arcload}
                echo "" > ${scratch}/arc.cf
 
                # Move kernel binaries to ${scratch}/kernels, and

Reply via email to