mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 18:38:44 +02:00
tree.sh: don't delete builds if tree==target
in that case, the previous tree-wide check will cover it, so the current logic wastes computational time. this patch therefore somewhat optimises the code. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+3
-3
@@ -184,9 +184,9 @@ check_project_hashes()
|
|||||||
|
|
||||||
# check only the given target; delete only the target build
|
# check only the given target; delete only the target build
|
||||||
# if that's all that changed (not applicable to single-tree)
|
# if that's all that changed (not applicable to single-tree)
|
||||||
singletree "$project" || [ -z "$target" ] || \
|
singletree "$project" || [ -z "$target" ] || [ "$target" = "$tree" ] \
|
||||||
check_hashes tghash "$target" badtghash "$configdir/$target" || \
|
|| check_hashes tghash "$target" badtghash "$configdir/$target" \
|
||||||
x_ rm -Rf "elf/$project/$tree/$target"; :
|
|| x_ rm -Rf "elf/$project/$tree/$target"; :
|
||||||
}
|
}
|
||||||
|
|
||||||
check_hashes()
|
check_hashes()
|
||||||
|
|||||||
Reference in New Issue
Block a user