From e5d51c5a6474e1312e699f9d0c692248f5fe9ce1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 17 Aug 2014 20:57:37 -0400 Subject: install: Set default plat if none given --- (limited to 'lib/cmd') 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')" \ -- cgit v0.9.1