summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-04-27 21:01:22 +0200
committerErich Eckner <git@eckner.net>2020-06-29 10:43:33 +0200
commitea65c14d3d4fd4909b58345b512a885f3a52cf91 (patch)
tree4032df4248a7c00a0bdb0ce36b22e99cc4392bf7
parent307f8ddb2c0ddab33ceaa0900d324cc011114662 (diff)
downloaddevtools32-ea65c14d3d4fd4909b58345b512a885f3a52cf91.tar.xz
use `read -r var < "$file"` instead of `var=$(cat "$file")`
-rw-r--r--arch-nspawn.in2
-rw-r--r--archbuild.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index eb4d52f..ce60600 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -127,7 +127,7 @@ eval "$(grep -a '^CARCH=' "$working_dir/etc/makepkg.conf")"
[[ -z $nosetarch ]] || unset CARCH
if [[ -f "@pkgdatadir@/setarch-aliases.d/${CARCH}" ]]; then
- set_arch=$(cat "@pkgdatadir@/setarch-aliases.d/${CARCH}")
+ read -r set_arch < "@pkgdatadir@/setarch-aliases.d/${CARCH}"
else
set_arch="${CARCH}"
fi
diff --git a/archbuild.in b/archbuild.in
index c317cc2..d530629 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -18,7 +18,7 @@ else
arch=${tag##*-}
fi
if [[ -f "@pkgdatadir@/setarch-aliases.d/${arch}" ]]; then
- set_arch=$(cat "@pkgdatadir@/setarch-aliases.d/${arch}")
+ read -r set_arch < "@pkgdatadir@/setarch-aliases.d/${arch}"
else
set_arch="${arch}"
fi