From ed921d78900093d7e734e961001a9ac0d6e5d34a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 15 Jun 2024 23:01:45 +0100 Subject: [PATCH] trees: simplify copy_elf() Signed-off-by: Leah Rowe --- script/trees | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/script/trees b/script/trees index ca36b52..4880af3 100755 --- a/script/trees +++ b/script/trees @@ -291,11 +291,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"