From b2e3c041723a0416f9b678ead9bee100db4a4775 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Mon, 17 Jul 2017 18:44:00 -0400 Subject: Replace calls to 'cat' w/ input redirection --- libreboot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libreboot') 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 -- cgit v1.2.3-70-g09d2