summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-knecht13
1 files changed, 7 insertions, 6 deletions
diff --git a/build-knecht b/build-knecht
index 508f614..cdbffc3 100755
--- a/build-knecht
+++ b/build-knecht
@@ -10,12 +10,13 @@ if [ -z "${home_dir}" ]; then
exit 1
fi
-arch=$(
- uname -m \
- | sed '
- s/^\(armv[67]\)l$/\1h/
- '
-)
+if [ -n "$1" ]; then
+ arch="$1"
+else
+ arch=$(
+ pacman-conf Architecture
+ )
+fi
if ! git -C "${home_dir}/archlinuxewe" pull --ff-only; then
>&2 echo 'Cannot update archPackages repository.'