summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-28 16:12:56 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-28 16:12:56 +0100
commita3814c5afb568f3de79545b5ae146ee9b5f55a5d (patch)
tree6a6e003d58d31a7419d3fbe0ef9b304750bd4b2e /bin/pkg
parent453f8ffe1dc0100be890ea335f3f2a805e6f8d2e (diff)
pkg: Fixed option parsing
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index e236d40..91a6f3a 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -100,8 +100,8 @@ while [[ $1 == [-+]* ]] {
+d|--no-debug) DEBUG=0 ;;
-au|--auto-update) AUTOUPDATE=1 ;;
+au|--no-auto-update) AUTOUPDATE=0 ;;
- -co|--checklinks-options) CL_OPTIONS+=$1; shift ;;
- -p|--packagedir) PDIR=$1; shift ;;
+ -co|--checklinks-options) CL_OPTIONS+=$2; shift ;;
+ -p|--packagedir) PDIR=$2; shift ;;
*) die "Unknown argument: '$1'\n" ;;
esac
shift