1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-11 11:55:12 -05:00

move parameter count check after check for help and version.

Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
This commit is contained in:
Andrew Fyfe 2007-04-11 21:51:20 +01:00 committed by Dan McGee
parent 95720106bb
commit a73e9a24af
2 changed files with 10 additions and 10 deletions

View File

@ -78,11 +78,6 @@ check_force () {
# PROGRAM START
if [ $# -lt 2 ]; then
usage
exit 1
fi
if [ "$1" = "-h" -o "$1" = "--help" ]; then
usage
exit 0
@ -93,6 +88,11 @@ if [ "$1" = "-V" -o "$1" = "--version" ]; then
exit 0
fi
if [ $# -lt 2 ]; then
usage
exit 1
fi
# source system and user makepkg.conf
if [ -r /etc/makepkg.conf ]; then
source /etc/makepkg.conf

View File

@ -62,11 +62,6 @@ version() {
echo
}
if [ $# -lt 2 ]; then
usage
exit 1
fi
MAKEPKG_OPTS=
for arg in $*; do
case $arg in
@ -147,6 +142,11 @@ if [ "$dest" = "" ]; then
exit 1
fi
if [ $# -lt 1 ]; then
usage
exit 1
fi
# convert a (possibly) relative path to absolute
cd "$dest"
dest="$(pwd)"