aboutsummaryrefslogtreecommitdiff
path: root/upkg
diff options
context:
space:
mode:
Diffstat (limited to 'upkg')
-rwxr-xr-xupkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/upkg b/upkg
index 342b396..0cbf74b 100755
--- a/upkg
+++ b/upkg
@@ -4,7 +4,7 @@ if [ "$1" = "--help" ]; then
cat <<EOF
upkg - upgrade/install/reinstall a Slackware package.
-Usage: upkg <package> [<package> ...]
+Usage: upkg [package [<package> ...]]
<package> is an installable Slackware package (.tgz, etc).
@@ -45,7 +45,7 @@ esac
# the package filename. Otherwise, read .info file for version number
# and extract BUILD from the SlackBuild.
-if [ -z "$@" ]; then
+if [ -z "$*" ]; then
script="$( echo *.SlackBuild)"
[ "$script" = '*.SlackBuild' ] && die "no .SlackBuild file in current dir"
script1=$( echo *.SlackBuild | cut -d' ' -f1 )