scripts: download: coreboot: Fix check for build error

build_error is supposed to be a file since it's created with touch.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
fsdg20230625
Denis 'GNUtoo' Carikli 2021-12-18 01:37:03 +01:00
parent 37b4500513
commit ae0be6f8b4
No known key found for this signature in database
GPG Key ID: 5F5DFCC14177E263
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ downloadfor() {
fi fi
cp -R coreboot "${cbtree}" || touch ../build_error cp -R coreboot "${cbtree}" || touch ../build_error
if [ -d ../build_error ]; then if [ -f ../build_error ]; then
printf "ERROR: download/coreboot: Unable to copy directory. Check file system permissions or free space.\n" printf "ERROR: download/coreboot: Unable to copy directory. Check file system permissions or free space.\n"
rm -Rf "${cbtree}/" rm -Rf "${cbtree}/"
cd ../; return 1 cd ../; return 1