From e0705d39a10040783f7a3b0359a6e090752c0784 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 10 Sep 2020 15:02:27 +0200 Subject: arch-nspawn: unset empty $set_arch - this allows to skip running setarch --- src/arch-nspawn.in | 1 + 1 file changed, 1 insertion(+) (limited to 'src/arch-nspawn.in') diff --git a/src/arch-nspawn.in b/src/arch-nspawn.in index bb681b2..3a2a728 100644 --- a/src/arch-nspawn.in +++ b/src/arch-nspawn.in @@ -119,6 +119,7 @@ eval "$(grep -a '^CARCH=' "$working_dir/etc/makepkg.conf")" if [[ -f "@pkgdatadir@/setarch-aliases.d/${CARCH}" ]]; then read -r set_arch < "@pkgdatadir@/setarch-aliases.d/${CARCH}" + [ -z "${set_arch}" ] && unset set_arch else set_arch="${CARCH}" fi -- cgit v1.2.3-70-g09d2