aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-07-17 18:44:00 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-07-18 21:43:22 -0400
commitb2e3c041723a0416f9b678ead9bee100db4a4775 (patch)
treed9f2b339a07d916ead24a6d120c905962eaa5fb0
parent3b3c0a44752a41478ba4f0c734beb46fb6a9e216 (diff)
downloadlibrebootfr-b2e3c041723a0416f9b678ead9bee100db4a4775.tar.gz
librebootfr-b2e3c041723a0416f9b678ead9bee100db4a4775.zip
Replace calls to 'cat' w/ input redirection
-rwxr-xr-xlibreboot6
1 files changed, 3 insertions, 3 deletions
diff --git a/libreboot b/libreboot
index 1c7cb7a2..412dd95b 100755
--- a/libreboot
+++ b/libreboot
@@ -177,7 +177,7 @@ libreboot_setup_variables() {
if git_check "${root}"; then
VERSION="${BUILD_SYSTEM}-$(git_describe "${root}" 2> /dev/null || echo 'git')"
elif [[ -f "${version_path}" ]]; then
- VERSION="$(cat "${version_path}")"
+ VERSION="$(< "${version_path}")"
else
VERSION="${BUILD_SYSTEM}"
fi
@@ -194,7 +194,7 @@ libreboot_setup_reproducible_builds_variables() {
# Used by GCC, e.g., -frandom-seed="${RANDOM_SEED}"
if [[ -z "${RANDOM_SEED}" ]]; then
if [[ -f "${rnd_seed_path}" ]]; then
- RANDOM_SEED="$(cat "${rnd_seed_path}")"
+ RANDOM_SEED="$(< "${rnd_seed_path}")"
else
RANDOM_SEED="${RANDOM}" # True randomness is unnecessary
fi
@@ -205,7 +205,7 @@ libreboot_setup_reproducible_builds_variables() {
if git_check "${root}"; then
SOURCE_DATE_EPOCH="$(git log -1 --format=%ct)"
elif [[ -f "${epoch_path}" ]]; then
- SOURCE_DATE_EPOCH="$(cat "${epoch_path}")"
+ SOURCE_DATE_EPOCH="$(< "${epoch_path}")"
else
SOURCE_DATE_EPOCH="$(date +%s)"
fi