diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-07 16:52:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-07 16:52:53 +0100 |
commit | 8042a42390155d29ad4b78a6173f3be48745ce84 (patch) | |
tree | ef099a363d1fee0d6163c6e1aa6786fe43f71329 /examples/pkglist | |
parent | f146cee3f205a4fc6a2fd1c530ffcd634884942c (diff) |
pkglist: Make it mxey (give usage info if $1 is missing)
Diffstat (limited to 'examples/pkglist')
-rwxr-xr-x | examples/pkglist | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/pkglist b/examples/pkglist index 95696a2..25737f1 100755 --- a/examples/pkglist +++ b/examples/pkglist @@ -3,6 +3,11 @@ ## used by ct update remote ## the PKG_PATH (package root path) is given as first argument ($1) +if [[ -z $1 ]] { + echo "Usage: $0 <package root path>" >&2 + exit 1 +} + if [[ ! -d $1 ]] { echo "$0: package root directory '$1' does not exist!" >&2 exit 1 |