summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-02-07 16:52:53 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-02-07 16:52:53 +0100
commit8042a42390155d29ad4b78a6173f3be48745ce84 (patch)
treeef099a363d1fee0d6163c6e1aa6786fe43f71329 /examples
parentf146cee3f205a4fc6a2fd1c530ffcd634884942c (diff)
pkglist: Make it mxey (give usage info if $1 is missing)
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/pkglist5
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