summaryrefslogtreecommitdiff
path: root/scripts/makeworld.in
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-04-11 21:51:20 +0100
committerDan McGee <dan@archlinux.org>2007-05-27 17:16:27 -0400
commita73e9a24affa79c2d83e849f7f3c2efd12ef41f0 (patch)
treea56c1f6bbb7559834e1f6d9b7ef328375945d5fd /scripts/makeworld.in
parent95720106bb65c5d6013b0ecdd3be4a3b78509568 (diff)
downloadpacman-a73e9a24affa79c2d83e849f7f3c2efd12ef41f0.tar.xz
move parameter count check after check for help and version.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Diffstat (limited to 'scripts/makeworld.in')
-rwxr-xr-xscripts/makeworld.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makeworld.in b/scripts/makeworld.in
index acbd2830..8783fc9d 100755
--- a/scripts/makeworld.in
+++ b/scripts/makeworld.in
@@ -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)"