diff options
author | Erich Eckner <git@eckner.net> | 2020-04-27 21:01:22 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-13 14:05:37 +0100 |
commit | 374ef45ea2dd85e337be9a493e4535f31c554487 (patch) | |
tree | 2db3fa9713fed1ddf595e3e0e022f35b1db5ae7d /arch-nspawn.in | |
parent | f02e83e667fe7890ec6af7baff7f8e3bc67c33ef (diff) | |
download | devtools-374ef45ea2dd85e337be9a493e4535f31c554487.tar.xz |
use `read -r var < "$file"` instead of `var=$(cat "$file")`
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r-- | arch-nspawn.in | 2 |
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 |