summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-09-10 15:02:27 +0200
committerErich Eckner <git@eckner.net>2020-09-10 15:02:27 +0200
commit22f432fc877bf0633920676cf2575f8ee654b7bb (patch)
tree3dc558a942ec44e5d12cec95b0ca1b0a388dbc92
parent7c112660d90e659ca2d252900a91dc30ac528a50 (diff)
downloaddevtools32-22f432fc877bf0633920676cf2575f8ee654b7bb.tar.xz
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