From ae0be6f8b4af05ba8ea959690c2aa4e17609f0e7 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 18 Dec 2021 01:37:03 +0100 Subject: 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 --- resources/scripts/download/coreboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/scripts/download') 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 -- cgit v1.2.1