From 4e0b6affb08148e5421d85107425ebcfb183344d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Jul 2009 18:37:45 +0200 Subject: pkg: Only shift if there are arguments --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/pkg') 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"} -- cgit v1.2.3