build/clean/u-boot: improved coding style

tabs for indentation

simplify some checks
This commit is contained in:
Leah Rowe
2023-05-20 21:47:10 +01:00
parent 06a92f61a8
commit 676efbb0df
+3 -6
View File
@@ -33,17 +33,14 @@ printf "Cleaning u-boot builds for all boards\n"
# clean u-boot (source archives preserved) # clean u-boot (source archives preserved)
for board in u-boot/*; do for board in u-boot/*; do
if [ "${board##*/}" = "u-boot" ]; then if [ "${board##*/}" = "u-boot" ] || [ ! -d "${board}" ]; then
continue
fi
if [ ! -d "${board}" ]; then
continue continue
fi fi
make -C "${board}/" distclean make -C "${board}/" distclean
if [ -e "${board}/.git" ]; then [ -e "${board}/.git" ] && \
git -C "${board}" clean -fdx git -C "${board}" clean -fdx
fi
done done
printf "\n\n" printf "\n\n"