summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-15 13:06:16 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-15 13:06:16 (EDT)
commit3a6a795fe3bb82b9d98f9716c1915fc0baccca3b (patch)
tree874f40256414502a7d45175d6b1143294f81d196 /lib
parent004381c70359318a0598271f7fcc52d75c80843e (diff)
install: Detect arch if not given
Diffstat (limited to 'lib')
-rw-r--r--lib/cmd/install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh
index d1ec81d..e690962 100644
--- a/lib/cmd/install.sh
+++ b/lib/cmd/install.sh
@@ -52,6 +52,8 @@ cmd_install_main()
if [ "x${cmd_install_opt_a+set}" = 'xset' ]; then
arch="${cmd_install_opt_a}"
+ else
+ arch="$(profile_detect_arch)"
fi
if [ "x${cmd_install_opt_P+set}" = 'xset' ]; then
plat="${cmd_install_opt_P}"