summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-06-24 22:50:09 +0100
committerLeah Rowe <leah@libreboot.org>2023-06-24 22:50:09 +0100
commit55fc8fe0b0da4d3f740e563d29dceacf666561b8 (patch)
tree645d321d844b8133db7f651499e80dc37a038c6f /resources/scripts
parentdd16a575e7aabe12386fcaa19c07ceed71fb01dd (diff)
build/cbutils: exit if utils dir doesn't exist
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/build/clean/cbutils3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/scripts/build/clean/cbutils b/resources/scripts/build/clean/cbutils
index b8bffb8d..d129ff6e 100755
--- a/resources/scripts/build/clean/cbutils
+++ b/resources/scripts/build/clean/cbutils
@@ -34,6 +34,9 @@ for cbtree in coreboot/*; do
if [ "${cbtree##*/}" = "coreboot" ]; then
continue
fi
+ if [ ! -d "${cbtree}" ]; then
+ continue
+ fi
# Clean coreboot, of course
make -C "${cbtree}/" distclean