From ea65c14d3d4fd4909b58345b512a885f3a52cf91 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")` --- archbuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archbuild.in') 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 -- cgit v1.2.3-70-g09d2