summaryrefslogtreecommitdiff
path: root/bin/build-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-01 13:48:40 +0100
committerErich Eckner <git@eckner.net>2019-02-01 13:48:40 +0100
commitbdbff0c368672779d8e59dec3eb31d1099ddc1d2 (patch)
tree08f7715a17f327f14864b98072c355f10cc29499 /bin/build-packages
parent1d0b33f33996eae2e2bc4a31dbaa1e352cc162cd (diff)
downloadbuilder-bdbff0c368672779d8e59dec3eb31d1099ddc1d2.tar.xz
bin/build-packages: $arch needs to be set with -l, too
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages26
1 files 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 \