From ef3fb05d66f1b5c94dd65ae2d14b691227d6afbe Mon Sep 17 00:00:00 2001 From: Riku Viitanen Date: Sun, 3 Sep 2023 17:00:18 +0300 Subject: 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 --- script/build/release/roms | 6 +++--- script/build/release/src | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'script/build/release') diff --git a/script/build/release/roms b/script/build/release/roms index c86fc79f..1d6bcb76 100755 --- a/script/build/release/roms +++ b/script/build/release/roms @@ -23,7 +23,7 @@ set -u -e . "include/err.sh" -projectname="$(cat projectname)" +read projectname < projectname version="version-unknown" versiondate="version-date-unknown" tree="default" @@ -53,9 +53,9 @@ main() init_check() { [ -f version ] && \ - version="$(cat version)" + read version < version [ -f versiondate ] && \ - versiondate="$(cat versiondate)" + read versiondate < versiondate [ ! -d "bin/" ] && \ err "init_check: no ROMs built yet (error)" [ -d "release/" ] || \ diff --git a/script/build/release/src b/script/build/release/src index b2d3b535..0a0501a3 100755 --- a/script/build/release/src +++ b/script/build/release/src @@ -23,7 +23,7 @@ set -u -e . "include/err.sh" -projectname="$(cat projectname)" +read projectname < projectname trees_fetch_list="coreboot u-boot seabios" simple_fetch_list="flashrom grub memtest86plus me_cleaner uefitool" @@ -46,9 +46,9 @@ printf "Building source code archive, version %s\n" "${version}" main() { [ -f version ] && \ - version="$(cat version)" + read version < version [ -f versiondate ] && \ - versiondate="$(cat versiondate)" + read versiondate < versiondate create_release_directory download_modules -- cgit v1.2.1