download/coreboot: simplify check

This commit is contained in:
Leah Rowe
2023-05-15 02:51:15 +01:00
parent 00cafd7022
commit c17423e475
+2 -5
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/"