summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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"}