mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
trees: simplify copy_elf()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-5
@@ -293,11 +293,7 @@ mkpayload_grub()
|
||||
|
||||
copy_elf()
|
||||
{
|
||||
[ -f "$listfile" ] || return 0
|
||||
|
||||
x_ mkdir -p "$dest_dir"
|
||||
|
||||
while read -r f; do
|
||||
[ -f "$listfile" ] && x_ mkdir -p "$dest_dir" && while read -r f; do
|
||||
[ -f "$cdir/$f" ] && x_ cp "$cdir/$f" "$dest_dir"
|
||||
done < "$listfile"
|
||||
x_ make clean -C "$cdir"
|
||||
|
||||
Reference in New Issue
Block a user