Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/arch-nspawn.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-04-27 21:01:22 +0200
committerErich Eckner <git@eckner.net>2020-04-27 21:01:22 +0200
commitd8c62d6fb16768a44dfb6925cbdb7cace203d769 (patch)
tree1e95d5eab05b0e574a8357e94f31be3c32457f06 /arch-nspawn.in
parentfb6bedcc13435a7b567bea1001b8e15aff44c8f5 (diff)
use `read -r var < "$file"` instead of `var=$(cat "$file")`
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r--arch-nspawn.in2
1 files changed, 1 insertions, 1 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