xbps: fix argc handling.

--HG--
extra : convert_revision : f623bdaf61b0d86c8d2eaa2105f9836601b7e93d
This commit is contained in:
Juan RP 2008-11-03 11:01:42 +01:00
parent 5e64daeed6
commit 83e4088313

View file

@ -1402,7 +1402,7 @@ while getopts "Cc:" opt; do
done
shift $(($OPTIND - 1))
[ $# -eq 0 -o $# -gt 4 ] && usage
[ $# -eq 0 -o $# -gt 2 ] && usage
target="$1"
if [ -z "$target" ]; then