diff options
Diffstat (limited to 'contrib/cpt-size')
-rwxr-xr-x | contrib/cpt-size | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/cpt-size b/contrib/cpt-size index 63288a2..456fa25 100755 --- a/contrib/cpt-size +++ b/contrib/cpt-size @@ -1,7 +1,14 @@ #!/bin/sh -ef # Show the size on disk for a package -case "$1" in ''|--help|-h) printf '%s\n' "usage: ${0##*/} [pkg]" ; exit 0 ; esac +case "$1" in + --help|-h) + printf '%s\n' "usage: ${0##*/} [pkg]" + exit 0 + ;; + '') set -- "${PWD##*/}" +esac + cpt-search "$1" >/dev/null # Filter directories from manifest and leave only files. |