summaryrefslogtreecommitdiff
path: root/resources/scripts/build/clean/cbutils
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/build/clean/cbutils')
-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