mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 07:19:40 +02:00
Less cat abuse
More than 90% of cats were thus terminated. read (shell built-in) is better at reading, and dogs are better pets. Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
This commit is contained in:
@@ -26,8 +26,8 @@ set -u -e
|
||||
|
||||
. "include/err.sh"
|
||||
|
||||
projectname="$(cat projectname)"
|
||||
our_version="$(cat version)"
|
||||
read projectname < projectname
|
||||
read our_version < version
|
||||
|
||||
export LOCALVERSION="-${projectname}-${our_version}"
|
||||
|
||||
@@ -270,11 +270,11 @@ copy_elf()
|
||||
err "copy_elf: cannot prepare coreboot image"
|
||||
fi
|
||||
|
||||
for f in $(cat "${listfile}"); do
|
||||
while read f; do
|
||||
[ ! -f "${codedir}/$f" ] || \
|
||||
cp "${codedir}/${f}" "${dest_dir}/" || \
|
||||
fail "copy_elf: cannot copy elf file"
|
||||
done
|
||||
done < ${listfile}
|
||||
|
||||
./handle make file -c "${codedir}" || \
|
||||
fail "copy_elf: clean: ${codedir} (${project}/${target})"
|
||||
|
||||
Reference in New Issue
Block a user