summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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