From d8c62d6fb16768a44dfb6925cbdb7cace203d769 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 27 Apr 2020 21:01:22 +0200 Subject: use `read -r var < "$file"` instead of `var=$(cat "$file")` --- arch-nspawn.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch-nspawn.in') 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 -- cgit v1.2.3-70-g09d2