summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-09 18:37:45 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-09 18:37:45 +0200
commit4e0b6affb08148e5421d85107425ebcfb183344d (patch)
treeb36120b5c2f26da272f4e39d868d41a9ef9379d8 /bin/pkg
parentbe02e06b00e95060d8707713e8d2140c2f5da70f (diff)
pkg: Only shift if there are arguments
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 83aae40..b995c07 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -73,7 +73,7 @@ while [[ $1 == --* ]] {
}
action=$1
-shift
+((#)) && shift
[[ -n $PKG_ROOT ]] || die "No PKG_ROOT specified. Please edit your pkg.conf\n"
: ${PKG_DIR:="$HOME/packages"}