From bdbff0c368672779d8e59dec3eb31d1099ddc1d2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 1 Feb 2019 13:48:40 +0100 Subject: bin/build-packages: $arch needs to be set with -l, too --- bin/build-packages | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bin/build-packages b/bin/build-packages index 066ef24..6d69ac1 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -205,20 +205,20 @@ while [ "${count}" -ne 0 ] && \ fi err=0 + case "$(uname -m)" in + 'i486') + arch='i486' + ;; + 'i686'|'x86_64') + arch='i686' + ;; + *) + >&2 printf 'Sorry, architecture %s does not work (yet) as a build slave.\n' \ + "$(uname -m)" + exit 2 + ;; + esac if [ -z "${forced_package}" ]; then - case "$(uname -m)" in - 'i486') - arch='i486' - ;; - 'i686'|'x86_64') - arch='i686' - ;; - *) - >&2 printf 'Sorry, architecture %s does not work (yet) as a build slave.\n' \ - "$(uname -m)" - exit 2 - ;; - esac package=$( # shellcheck disable=SC2029 ssh \ -- cgit v1.2.3-70-g09d2