Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-09-10 15:02:27 +0200
committerErich Eckner <git@eckner.net>2020-10-11 15:04:39 +0200
commit7fc125e9b30f677231303ef07defa0ed97e32eb9 (patch)
tree113635dc63d4bb74ef4006468d55be50cb43c792
parentcf9f7ae6b126039e73bbd18c9b09020f6f15023b (diff)
arch-nspawn: unset empty $set_arch - this allows to skip running setarch
-rw-r--r--arch-nspawn.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index a069fa6..cba1344 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -129,6 +129,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