mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-24 02:04:02 +02:00
build/clean/u-boot: improved coding style
tabs for indentation simplify some checks
This commit is contained in:
@@ -33,17 +33,14 @@ printf "Cleaning u-boot builds for all boards\n"
|
||||
|
||||
# clean u-boot (source archives preserved)
|
||||
for board in u-boot/*; do
|
||||
if [ "${board##*/}" = "u-boot" ]; then
|
||||
continue
|
||||
fi
|
||||
if [ ! -d "${board}" ]; then
|
||||
if [ "${board##*/}" = "u-boot" ] || [ ! -d "${board}" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
make -C "${board}/" distclean
|
||||
|
||||
if [ -e "${board}/.git" ]; then
|
||||
[ -e "${board}/.git" ] && \
|
||||
git -C "${board}" clean -fdx
|
||||
fi
|
||||
done
|
||||
|
||||
printf "\n\n"
|
||||
|
||||
Reference in New Issue
Block a user