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:
Riku Viitanen
2023-09-03 17:00:18 +03:00
parent e369e8fb4a
commit ef3fb05d66
8 changed files with 17 additions and 17 deletions
+4 -4
View File
@@ -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})"