summaryrefslogtreecommitdiffstats
path: root/lib/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cmd')
-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 a296891..6cee601 100644
--- a/lib/cmd/install.sh
+++ b/lib/cmd/install.sh
@@ -58,6 +58,8 @@ cmd_install_main()
fi
if [ "x${cmd_install_opt_P+set}" = 'xset' ]; then
plat="${cmd_install_opt_P}"
+ else
+ plat="$(profile_default_plat)"
fi
if ! profile_validate_archplat "${arch}" "${plat}"; then
error 2 "$(get_msg 'cmd_install_bad_archplat')" \