summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-01 16:24:14 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-01 16:24:14 +0200
commit6cb3b8204d124526529f3b83211986cd97c7ed32 (patch)
treef19ca26f3e2cef0e0c3d96371111a8df8bbcfc32 /bin
parenteba5688feb1c7333b415c444d44f2e9f9fbf03b5 (diff)
bin/pkg: pkg_info(): Check for arguments
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index 7aabb4d..557faf0 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -205,6 +205,7 @@ real_priority () {
pkg_info () {
cd $PDIR/$1 || return
+ [ -z "$1" ] && die "Not enough arguments\n"
info "Package: "
echo "$1"
info "Priority: "