summaryrefslogtreecommitdiff
path: root/resources/scripts/build/clean/u-boot
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/build/clean/u-boot')
-rwxr-xr-xresources/scripts/build/clean/u-boot7
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/scripts/build/clean/u-boot b/resources/scripts/build/clean/u-boot
index 7ba3a4a9..5deff216 100755
--- a/resources/scripts/build/clean/u-boot
+++ b/resources/scripts/build/clean/u-boot
@@ -39,11 +39,12 @@ clean_uboot()
fi
make -C "${board}/" distclean || \
- err "cannot distclean u-boot dir, ${board}"
+ err "clean_uboot: cannot distclean ${board}"
- [ ! -e "${board}/.git" ] || \
+ if [ -e "${board}/.git" ]; then
git -C "${board}" clean -fdx || \
- err "cannot clean u-boot git repo, ${board}"
+ err "clean_uboot: ${board}: cannot clean git files"
+ fi
done
}