summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-12-18 01:37:03 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-02-10 10:55:03 +0100
commitae0be6f8b4af05ba8ea959690c2aa4e17609f0e7 (patch)
tree97005928527a255e2dd82e5c6971426099e7f6d2 /resources
parent37b450051362b4c54a8e05807f173b04649ce501 (diff)
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>
Diffstat (limited to 'resources')
-rwxr-xr-xresources/scripts/download/coreboot2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot
index a500de61..6d0aa353 100755
--- a/resources/scripts/download/coreboot
+++ b/resources/scripts/download/coreboot
@@ -125,7 +125,7 @@ downloadfor() {
fi
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"
rm -Rf "${cbtree}/"
cd ../; return 1