xbps-src/doinstall.sh: update args check.
This commit is contained in:
parent
5eb5263c4b
commit
1f2147f240
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@
|
||||||
# $2 - subpkg mode [REQUIRED]
|
# $2 - subpkg mode [REQUIRED]
|
||||||
# $2 - cross target [OPTIONAL]
|
# $2 - cross target [OPTIONAL]
|
||||||
|
|
||||||
if [ $# -lt 1 -o $# -gt 2 ]; then
|
if [ $# -lt 2 -o $# -gt 3 ]; then
|
||||||
echo "${0##*/}: invalid number of arguments: pkgname [cross-target]"
|
echo "${0##*/}: invalid number of arguments: pkgname subpkg-mode [cross-target]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue