xbps-src/doinstall.sh: update args check.

This commit is contained in:
Juan RP 2015-09-27 11:27:43 +02:00
parent 5eb5263c4b
commit 1f2147f240
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@
# $2 - subpkg mode [REQUIRED]
# $2 - cross target [OPTIONAL]
if [ $# -lt 1 -o $# -gt 2 ]; then
echo "${0##*/}: invalid number of arguments: pkgname [cross-target]"
if [ $# -lt 2 -o $# -gt 3 ]; then
echo "${0##*/}: invalid number of arguments: pkgname subpkg-mode [cross-target]"
exit 1
fi