diff options
author | Erich Eckner <git@eckner.net> | 2020-09-10 15:02:27 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-13 14:06:33 +0100 |
commit | c119ca95e78b779bca9325e1f8fd22c6479469db (patch) | |
tree | fb7ddbe1f7d571b68bc8d1ae0ec791143c7de908 | |
parent | 8d92f0e42ce5b2340fde8f561c9e84506c677650 (diff) | |
download | devtools-c119ca95e78b779bca9325e1f8fd22c6479469db.tar.xz |
arch-nspawn: unset empty $set_arch - this allows to skip running setarch
-rw-r--r-- | arch-nspawn.in | 1 |
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 |