download/coreboot: simplify check

fsdg20230625
Leah Rowe 2023-05-15 02:51:15 +01:00
parent 00cafd7022
commit c17423e475
1 changed files with 2 additions and 5 deletions

View File

@ -89,11 +89,8 @@ download_coreboot_for_board()
return 0
fi
[ ! -d coreboot ] && \
mkdir "coreboot/"
[ ! -d coreboot ] && \
printf "ERROR: download/coreboot: directory not created\n" && \
return 1
[ ! -d coreboot ] && mkdir "coreboot/"
[ ! -d coreboot ] && return 1
cd "coreboot/"