From 0920d5d4a14a02e0b400db480957a1e64b67044a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 02 Dec 2013 21:10:16 -0500 Subject: install: Parse profile prefix in suite. --- (limited to 'lib/cmd/install.sh') diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh index e3d81c9..982e9b5 100644 --- a/lib/cmd/install.sh +++ b/lib/cmd/install.sh @@ -47,6 +47,14 @@ cmd_install_main() plat="${cmd_install_opt_P}" fi + if [ "x${suite%%:*}" != "x${suite}" ]; then + profile="${suite%%:*}" + suite="${suite#*:}" + else + profile='proteanos' + fi + + printf 'Profile: %s\n' "${profile}" printf 'Suite: %s\n' "${suite}" printf 'Architecture: %s\n' "${arch}" printf 'Platform: %s\n' "${plat}" -- cgit v0.9.1