summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/install.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/cmd/install.sh b/src/cmd/install.sh
index 0e4a8b9..ecdfe8c 100644
--- a/src/cmd/install.sh
+++ b/src/cmd/install.sh
@@ -33,15 +33,20 @@ cmd_install_main()
fi
shift $((${OPTIND} - 1))
- if [ ${#} -lt 2 ]; then
+ if [ ${#} -eq 1 ]; then
+ suite=''
+ root="${1}"
+ shift 1
+ fi
+ if [ ${#} -eq 2 ]; then
+ suite="${1}"
+ root="${2}"
+ shift 2
+ else
print_cmd_usage 'install' >&2
return 1
fi
- suite="${1}"
- root="${2}"
- shift 2
-
if [ "x${suite%%:*}" != "x${suite}" ]; then
profile="${suite%%:*}"
suite="${suite#*:}"