mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +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
|
||||
# if that's all that changed (not applicable to single-tree)
|
||||
singletree "$project" || [ -z "$target" ] || \
|
||||
check_hashes tghash "$target" badtghash "$configdir/$target" || \
|
||||
x_ rm -Rf "elf/$project/$tree/$target"; :
|
||||
singletree "$project" || [ -z "$target" ] || [ "$target" = "$tree" ] \
|
||||
|| check_hashes tghash "$target" badtghash "$configdir/$target" \
|
||||
|| x_ rm -Rf "elf/$project/$tree/$target"; :
|
||||
}
|
||||
|
||||
check_hashes()
|
||||
|
||||
Reference in New Issue
Block a user