From 1f2147f24080e9df2055cf8cc97da977c045b814 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 27 Sep 2015 11:27:43 +0200 Subject: [PATCH] xbps-src/doinstall.sh: update args check. --- common/xbps-src/libexec/xbps-src-doinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/libexec/xbps-src-doinstall.sh b/common/xbps-src/libexec/xbps-src-doinstall.sh index 2cb6594d102..a4b486cb601 100755 --- a/common/xbps-src/libexec/xbps-src-doinstall.sh +++ b/common/xbps-src/libexec/xbps-src-doinstall.sh @@ -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